From: [EMAIL PROTECTED] Operating system: * PHP version: 5.3.0alpha2 PHP Bug Type: Reproducible crash Bug description: Infinite recursion in class destructor causes crash
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 bug report at http://bugs.php.net/?id=46156&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46156&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46156&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46156&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46156&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=46156&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46156&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46156&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46156&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46156&r=support Expected behavior: http://bugs.php.net/fix.php?id=46156&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46156&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46156&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46156&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46156&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46156&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46156&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46156&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46156&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46156&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46156&r=mysqlcfg