ID:               27670
 Updated by:       [EMAIL PROTECTED]
 Reported By:      noebel at flyingdog dot de
-Status:           Open
+Status:           Closed
 Bug Type:         PHP options/info functions
 Operating System: Linux (Debian)
 PHP Version:      5.0.0RC1
 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------

[2004-03-24 05:49:19] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27670&edit=1

Reply via email to