Re: serialize bug with array that references to itself?
| From: | Andrey Hristov | Date: | Wed, 03 Nov 2004 17:26:59 +0000 |
| Subject: | Re: serialize bug with array that references to itself? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13716@lists.php.net to get a copy of this message | ||
Moriyoshi Koizumi wrote:
On 2004/11/03, at 22:31, Andrey Hristov wrote:Well, when I was writing the test I made a mistake which I saw later but my mistake lead to a PHP core dump.$c=array($a,$b); var_dump($c,$d=serialize($c)); var_dump($e=unserialize($d)); $d[0]->a->prop=1; var_dump($d); ?>Did you mean "$e[0]->a->prop" by "$d[0]->a->prop"?
That looks like another issue: <?php // This causes bus error. $a = 'abc'; $a{0}->a->prop = 1; ?> MoriyoshiAndrey