Re: serialize bug with array that references to itself?
| From: | Moriyoshi Koizumi | Date: | Wed, 03 Nov 2004 17:22:23 +0000 |
| Subject: | Re: serialize bug with array that references to itself? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13714@lists.php.net to get a copy of this message | ||
On 2004/11/03, at 22:31, Andrey Hristov wrote:
$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; ?> Moriyoshi