ID: 46243 Updated by: [EMAIL PROTECTED] Reported By: Marius at BudgetDedicated dot com -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: Linux PHP Version: 5.2.6 New Comment:
This is smashing the stack but is expected behaviour for all versions before 5.3. Previous Comments: ------------------------------------------------------------------------ [2008-10-06 15:59:51] Marius at BudgetDedicated dot com Description: ------------ On all php versions I have available to test, including a local compile of the most recent stable (5.2.6) , using both the apache2 and cli api, I get a segfault on a looped function return. The example below is very simple and no one should make this mistake, but it must not cause php to segfault. For some structures involving complex objects and classes, returning such a loop may not always be obvious and the lack of error reporting after a segfault may make it hard to find the problem. Reproduce code: --------------- <? mySegfault(); function mySegfault(){ return mySegfault(); } ?> Expected result: ---------------- Error Actual result: -------------- Segfault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46243&edit=1