From: kyle at putnamcabinets dot com Operating system: Debian GNU/Linux (Sid) PHP version: 5.0.0b1 (beta1) PHP Bug Type: Class/Object related Bug description: Class properties are added automatically (at compile time?)
Description: ------------ Not sure if this is a bug, but certainly strange behavior. When class properties are mentioned in a function they are created even if the function is not called Reproduce code: --------------- php5 -n -r 'class frog { function croak() { echo $this->ribbit; } } $f = new frog; print_r($f);' Expected result: ---------------- frog Object ( ) Actual result: -------------- frog Object ( [ribbit] => ) -- Edit bug report at http://bugs.php.net/?id=25908&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25908&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25908&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25908&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25908&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25908&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25908&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25908&r=support Expected behavior: http://bugs.php.net/fix.php?id=25908&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25908&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25908&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25908&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25908&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25908&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25908&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25908&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25908&r=float