PHP 4.0 Bug #6239: object comparison w circular references leads to crash
| From: | waldschrott@php.net | Date: | Fri, 18 Aug 2000 15:44:10 +0000 |
| Subject: | PHP 4.0 Bug #6239: object comparison w circular references leads to crash | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-29421@lists.php.net to get a copy of this message | ||
From: waldschrott@php.net
Operating system: w2k, maybe all
PHP version: 4.0 Latest CVS (18/08/2000)
PHP Bug Type: Reproduceable crash
Bug description: object comparison w circular references leads to crash
got another one ;)
of course this example is *extremely* different from my
example and I don´t know how we could handle circular
references in ordered and unordered comparisions with ease,
but *it should not crash* (taken from zeev) although it´d
expect it to... :)
$obj->a='1';
$obj->b='2';
$obj2->b='2';
$obj2->a='1';
$obj2->c=&$obj;
$obj->c=&$obj2;
echo $obj==$obj2;
echo $obj===$obj2;