ID: 27535 Updated by: [EMAIL PROTECTED] Reported By: random at sinfusion dot com -Status: Open +Status: Assigned -Bug Type: Reproducible crash +Bug Type: Zend Engine 2 problem Operating System: Windows 2000 PHP Version: 5.0.0b4 (beta4) -Assigned To: +Assigned To: andi New Comment:
It doesn't crash for me (in debug mode), but it does generate the warning: /dat/dev/php/php-5.0dev/Zend/zend_hash.c(504) : ht=0x42be32f0 is being destroyed This is the same problem it seems as: http://news.php.net/article.php?group=php.internals&article=8441 Previous Comments: ------------------------------------------------------------------------ [2004-03-09 01:50:59] random at sinfusion dot com Description: ------------ Originally this was happening at the end of PEAR::Auth's constructor when it points it's storage object's '_auth_obj' variable to itself ($this). I've created a simpler example that still crashes either Apache 1.3.29 or 2.0.48, but in the simpler case it doesn't crash Apache until the second time you run the script. Reproduce code: --------------- <?php class Class1 { var $_Class2_obj; } class Class2 { var $storage = ''; function Class2() { $this->storage = new Class1(); $this->storage->_Class2_obj = $this; } } $foo = new Class2(); ?> Expected result: ---------------- No output, but no crash either. Actual result: -------------- Apache crashes ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27535&edit=1
