#17778 [Opn->Csd]: Strange boolean property behavior

From: Date: Thu, 19 Sep 2002 15:51:50 +0000
Subject: #17778 [Opn->Csd]: Strange boolean property behavior
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19757@lists.php.net to get a copy of this message
ID: 17778 Updated by: zeev@php.net Reported By: jason@mercuryboard.com -Status: Open +Status: Closed Bug Type: Zend Engine 2 problem Operating System: Windows XP PHP Version: 4.0CVS-2002-06-15 New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot 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 in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-09-05 16:23:43] phpsurf@ifrance.com still not working with alpha 2 ! ------------------------------------------------------------------------ [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 (#19757) next »