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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: christophe dot massiot at mail dot dotcom dot fr
New email:
PHP Version: OS:

 

 [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 03:01:29 2024 UTC