ID: 44883 Updated by: [EMAIL PROTECTED] Reported By: kevin at creativeanvil dot com -Status: Open +Status: Wont fix Bug Type: Scripting Engine problem Operating System: RHEL 4x PHP Version: 5.2.5 New Comment:
Bug #29242 Previous Comments: ------------------------------------------------------------------------ [2008-05-01 18:36:32] kevin at creativeanvil dot com Description: ------------ Basically my script was ending in the middle and output at the end of the script was not outputted. This was due to a coding error, however I believe a PHP error should have been thrown because PHP terminated the request at some point. It was a stupid mistake, however not the easiest to track down. The code isn't my actual code, but it will reproduce what I think is a problem. Reproduce code: --------------- <?php $c=0; function recursiveTest() { global $c; echo $c++."<br>"; recursiveTest(); } recursiveTest(); ?> Expected result: ---------------- I would expect it to go on until memory limit is reached, throwing an error, max execution time reached, throwing an error, or something that throws an error. In my environment it gets to 19456 and stops everytime, no error is given and it stops very quicky. ENDLESS RECURSION ERROR. Some kind of error. Actual result: -------------- 1 2 3 .... 19456 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44883&edit=1