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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 05:01:33 2025 UTC