|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-16 09:03 UTC] sander@php.net
[2002-06-29 03:52 UTC] andi@php.net
[2002-09-05 16:23 UTC] phpsurf at ifrance dot com
[2002-09-19 10:51 UTC] zeev@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri May 22 08:00:01 2026 UTC |
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');