php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27670 zend.ze1_compatibility_mode=on lets values of object-properties vanish
Submitted: 2004-03-24 05:49 UTC Modified: 2004-04-07 05:53 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:1 (33.3%)
From: noebel at flyingdog dot de Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 5.0.0RC1 OS: Linux (Debian)
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: noebel at flyingdog dot de
New email:
PHP Version: OS:

 

 [2004-03-24 05:49 UTC] noebel at flyingdog dot de
Description:
------------
Turning on zend.ze1_compatibility_mode let the zend-engine forget the values of object-properties.

Reproduce code:
---------------
ini_set("zend.ze1_compatibility_mode","On");

class heidrun {
        var $bla;
        var $blabla;
        function heidrun() {
                $this->bla="thanks heidrun";
        }
        function berta() {
                echo $this->bla;
                $this->blabla="thanks berta";
        }
        function gerda() {
                echo $this->blabla;
        }

}

$a=new heidrun();
$a->berta();
$a->gerda();
#echo serialize($a);


Expected result:
----------------
thanks heidrunthanks berta

Actual result:
--------------
there is no output

serializing the class gives
O:7:"heidrun":2:{s:3:"bla";N;s:6:"blabla";N;}

the object-properties are set, but empty

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-07 05:53 UTC] sniper@php.net
This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 12:01:27 2024 UTC