Re: cvs: php4 /ext/standard array.c /ext/standard/tests/array bug24198.phpt
| From: | Jon Parise | Date: | Tue, 17 Jun 2003 15:36:59 +0000 |
| Subject: | Re: cvs: php4 /ext/standard array.c /ext/standard/tests/array bug24198.phpt | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-21833@lists.php.net to get a copy of this message | ||
On Tue, Jun 17, 2003 at 10:24:46AM -0400, Ilia A. wrote:
> The old check has a problem, because $b & $c are write only copies *src_entry
> == *dest_entry condition is met and the function incorrectly terminates
> claiming a circular reference. We cannot use is_ref field to verify
> references since that field is always 0 no matter what. So, we rely on an
> interesting property of refcount, which causes refcount to be odd when we
> have a reference and even we simply have a write only copy.
Golly, that sounds like a swell thing to document alongside of the
code.
--
Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)