|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-07 05:53 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
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