#27670 [Opn->Csd]: zend.ze1_compatibility_mode=on lets values of object-properties vanish

From: Date: Wed, 07 Apr 2004 09:53:39 +0000
Subject: #27670 [Opn->Csd]: zend.ze1_compatibility_mode=on lets values of object-properties vanish
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57654@lists.php.net to get a copy of this message
ID: 27670 Updated by: sniper@php.net 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

« previous php.bugs (#57654) next »