ID: 46156
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Assigned
Bug Type: Reproducible crash
Operating System: *
PHP Version: 5.3.0alpha2
-Assigned To:
+Assigned To: dmitry
Previous Comments:
------------------------------------------------------------------------
[2008-09-23 10:00:25] [EMAIL PROTECTED]
Description:
------------
Creating a new instance of the same class in a class destructor which
causes infinite recursion will cause PHP to crash, instead of throwing a
memory_limit error.
Dmitry told me to report this so it wouldn't be forgotten.
Reproduce code:
---------------
<?php
class Crash
{
public function __destruct()
{
new self;
}
}
new Crash;
?>
Expected result:
----------------
memory_limit error
Actual result:
--------------
Crash
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46156&edit=1