|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-05-03 03:42 UTC] felipe@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 21:00:02 2025 UTC |
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