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

From: Date: Wed, 24 Mar 2004 10:49:19 +0000
Subject: #27670 [NEW]: zend.ze1_compatibility_mode=on lets values of object-properties vanish
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56753@lists.php.net to get a copy of this message
From: noebel at flyingdog dot de Operating system: Linux (Debian) PHP version: 5.0.0RC1 PHP Bug Type: PHP options/info functions Bug description: zend.ze1_compatibility_mode=on lets values of object-properties vanish 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 bug report at http://bugs.php.net/?id=27670&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27670&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27670&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27670&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27670&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27670&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27670&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27670&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27670&r=support Expected behavior: http://bugs.php.net/fix.php?id=27670&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27670&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27670&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27670&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27670&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27670&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27670&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27670&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27670&r=float

« previous php.bugs (#56753) next »