php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2781 Problem with booleans in class members
Submitted: 1999-11-20 18:22 UTC Modified: 1999-11-21 19:13 UTC
From: christophe dot massiot at mail dot dotcom dot fr Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 3 OS: Debian slink/Linux 2.2.12
Private report: No CVE-ID: None
 [1999-11-20 18:22 UTC] christophe dot massiot at mail dot dotcom dot fr
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-21 19:13 UTC] zeev at cvs dot php dot net
Fixed - thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 11:01:31 2024 UTC