Re: [PHP-DEV] PHP 4.0 Bug #6039 Updated: PHP Crashed if class contain reference by other class From: Andi Gutmans (andi <email protected>)
Date: 08/13/00

At 02:18 PM 8/13/00 +0300, Stanislav Malyshev wrote:
>BD>> what exactly creates that crash here, following the exact
>BD>> way PHP should go through the code I cannot reveal any
>BD>> paradox or complicated situations...
>
>There's a circular reference there ($this->something = &$this). PHP
>doesn't like circular references (as does almost any other
>reference-counting system - that's the downside of it). If you removed
>that circular ref and still see the crash - please publish more details.

Circular references should cause a leak (which will be cleaned up at the
end of the request) and not a crash. There is some bug there but as the
reproducing code is very strange I don't think we will have time to fix
this for 4.0.2.
Andi

---
Andi Gutmans <andi <email protected>>
http://www.zend.com/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>