ID: 29242
Updated by: [EMAIL PROTECTED]
Reported By: miancule at yahoo dot com
-Status: Open
+Status: Wont fix
Bug Type: Reproducible crash
Operating System: Windows XP
PHP Version: 4.3.7
Previous Comments:
------------------------------------------------------------------------
[2004-07-18 11:57:36] miancule at yahoo dot com
Description:
------------
PHP 4.3.7
Apache 2.0.49
Windows XP
Deep recursion crashes the Apache process with status = 128.
[Sun Jul 18 12:29:08 2004] [notice] Parent: child process exited with
status 128 -- Restarting.
It seems the error occurs at somehow random recursion levels (it can go
from recursion level 100 to 1000).
I understand that a stack overflow might occur, but for the sample
below a decent implementation should allow very large recursion depths.
Reproduce code:
---------------
<?php
function recurse($count)
{
echo $count.'<br/>';
if ($count < 10000)
recurse(++$count);
}
recurse(0);
die 'No crash';
?>
Expected result:
----------------
0
1
..
999
No crash
Actual result:
--------------
No output (because the server process is killed prematurely).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29242&edit=1