Re: PHP 4.0 Bug #6039 Updated: PHP Crashed if class contain reference by other class
| From: | Andi Gutmans | Date: | Sun, 13 Aug 2000 13:14:22 +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-28750@lists.php.net to get a copy of this message | ||
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@zend.com> http://www.zend.com/