PHP 4.0 Bug #4341: Object initialization doesn't work

From: Date: Sat, 06 May 2000 11:51:07 +0000
Subject: PHP 4.0 Bug #4341: Object initialization doesn't work
Groups: php.dev 
Request: Send a blank email to php-dev+get-18479@lists.php.net to get a copy of this message
From: castor@flying-dog.com Operating system: Redhat 6.1 PHP version: 4.0 Latest CVS (06/05/2000) PHP Bug Type: Scripting Engine problem Bug description: Object initialization doesn't work <? $obj->test="test"; if (!$obj->test) echo "error"; echo $obj->test; ?> Results in "error" which isn't correct. This works perfect in PHP 4 Beta 3. This bug appears in Beta 4 , RC1 and the latest RC2 . In PHP3 it prints out a warning message. To do nothing is horrible because in large PHP projects it is very hard to debug such programs especially if large code segments depends on the PHP 4 Beta 3 behaviour!

« previous php.dev (#18479) next »