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 [url]http://bugs.php.net/?id=25908&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25908&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25908&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25908&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25908&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25908&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25908&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25908&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25908&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25908&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25908&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25908&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25908&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25908&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25908&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25908&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=25908&r=float[/url]