Re: PHP 4.0 Bug #6039 Updated: PHP Crashed if class contain reference by other class
| From: | Stanislav Malyshev | Date: | Sun, 13 Aug 2000 11:18:58 +0000 |
| Subject: | Re: PHP 4.0 Bug #6039 Updated: PHP Crashed if class contain reference by other class | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-28746@lists.php.net to get a copy of this message | ||
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.
--
Stanislav Malyshev stas@zend.com
+972-3-6139665 ext.106