Moriyoshi Koizumi wrote:
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"?
Well, when I was writing the test I made a mistake which
I saw later but my mistake lead to a PHP core dump.
That looks like another issue:
<?php
// This causes bus error.
$a = 'abc';
$a{0}->a->prop = 1;
?>
Moriyoshi
Andrey
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php