ID: 28337 User updated by: wf at bitplan dot com Reported By: wf at bitplan dot com Status: Bogus Bug Type: Reproducible crash Operating System: Windows XP SP1 PHP Version: 5.0.0RC2 New Comment:
Endless recursion is detected in any decent programming language. I'd consider PHP a decent programming language if it does detect endless recursion. A simple stack overflow message will do. Not detecting endless recursion is an inacceptable design decision for PHP since an apache crash is not acceptable result for such a simple problem. Previous Comments: ------------------------------------------------------------------------ [2004-05-09 17:58:41] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Don't do that. ------------------------------------------------------------------------ [2004-05-09 17:33:14] wf at bitplan dot com Description: ------------ Endless recursion crashes Apache PHP should simply report a stack-overflow exception and die This was called non repairable in 2002 but I'd seem its not acceptable for the object oriented PHP 5 version anymore Reproduce code: --------------- <?php class recurse { function loop() { $this->loop(); } // loop } $endless=new recurse(); $endless->loop(); ?> Expected result: ---------------- stack-overflow message Actual result: -------------- Apache crashes ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28337&edit=1