Re: serialize bug with array that references to itself?

From: Date: Wed, 03 Nov 2004 16:45:53 +0000
Subject: Re: serialize bug with array that references to itself?
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-13710@lists.php.net to get a copy of this message
BTW., I'm not sure that there's nothing more wrong here. Takin the first part of the code of first example: <?php $Arr = array(); $Arr['self'] = &$Arr; var_dump ( $Arr ); ?> It returns: array(1) { ["self"]=> array(1) { ["self"]=> *RECURSION* } } Is that as its expected to be? I meant that perhaps it should be: array(1) { ["self"]=> *RECURSION* } Since the element in $Arr['self'] is yet (or at least should be) a reference to itself...

« previous php.internals (#13710) next »