PHP 4.0 Bug #6039 Updated: PHP Crashed if class contain reference by other class
| From: | Bug Database | Date: | Mon, 14 Aug 2000 13:44:31 +0000 |
| Subject: | PHP 4.0 Bug #6039 Updated: PHP Crashed if class contain reference by other class | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-28815@lists.php.net to get a copy of this message | ||
ID: 6039
Updated by: waldschrott
Reported By: rezinkin@mail.ru
Status: Analyzed
Bug Type: Reproduceable crash
Assigned To:
Comments:
Here is a "light" version crashing my W2K system.
I´ve also attached (in my eyes) equivalent non-crashing code.
Crash code:
<?php
class a { }
class b {
function b(&$obj) {
$this->a=&$obj;
$this->a->b=&$this; }}
$a=new a;
$b=new b($a);
?>
//var_dump($b);
Equivalent non-crash code:
<?php
class a { }
class b {}
$a=new a;
$b=new b;
$a->b=&$b;
$a->b->a=&$a;
//var_dump($a);
?>
Full Bug description available at: http://bugs.php.net/?id=6039