PHP 4.0 Bug #2781: Problem with booleans in class members

From: Date: Sat, 20 Nov 1999 17:22:00 +0000
Subject: PHP 4.0 Bug #2781: Problem with booleans in class members
Groups: php.dev 
Request: Send a blank email to php-dev+get-12828@lists.php.net to get a copy of this message
From: christophe.massiot@mail.dotcom.fr Operating system: Debian slink/Linux 2.2.12 PHP version: 4.0 Beta 3 PHP Bug Type: Scripting Engine problem Bug description: Problem with booleans in class members The following script : 18:19 [webase3:pts/0] titi:~% cat test.php <? class toto { var $temp = array("required" => TRUE); } $toto = new toto; echo $toto->temp["required"]."\n"; ?> produces : 18:19 [webase3:pts/0] titi:~% php test.php Content-Type: text/html [Sat Nov 20 18:19:37 1999] Script: 'test.php' --------------------------------------- zend_execute_API.c(215) : Block 0x081001A0 status: zend_variables.c(62) : Actual location (location was relayed) Beginning: Cached (allocated on ./zend-scanner.l:1090, 5 bytes) End: OK --------------------------------------- which is not what I would have expected.

« previous php.dev (#12828) next »