#17778 [Com]: Strange boolean property behavior

From: Date: Thu, 05 Sep 2002 21:23:43 +0000
Subject: #17778 [Com]: Strange boolean property behavior
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18535@lists.php.net to get a copy of this message
ID: 17778 Comment by: phpsurf@ifrance.com Reported By: jason@mercuryboard.com Status: Closed Bug Type: Zend Engine 2 problem Operating System: Windows XP PHP Version: 4.0CVS-2002-06-15 New Comment: still not working with alpha 2 ! Previous Comments: ------------------------------------------------------------------------ [2002-06-29 03:52:59] andi@php.net This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. This seems to be fixed in the CVS. Please grab it or wait for alpha2. Thanks for the report. ------------------------------------------------------------------------ [2002-06-16 09:03:42] sander@php.net Moved to a brand new category! ------------------------------------------------------------------------ [2002-06-15 21:08:09] jason@mercuryboard.com Windows XP, PHP 4.3.0-dev as a module on Apache 1.3.24 In PHP 4.2.0, this script prints, as expected, "Constructor called - The variable is false" In 4.3.0-dev-zend2-alpha1pl1, this script prints "Constructor called - The variable is true" ---------------------------------- class test{ var $a; function test(){ $this->a = false; echo 'Constructor called - '; } } $obj = new test; echo 'The variable is ' . ($obj->a ? 'true' : 'false'); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17778&edit=1

« previous php.bugs (#18535) next »