ID: 35159
Updated by: [EMAIL PROTECTED]
Reported By: pekka at photography-on-the dot net
-Status: Open
+Status: Assigned
-Bug Type: Unknown/Other Function
+Bug Type: Scripting Engine problem
-Operating System: Windows XP Pro (also unix)
+Operating System: *
-PHP Version: 4.4.1
+PHP Version: 5CVS, 4.4.1 (2005-11-08) (cvs)
-Assigned To:
+Assigned To: dmitry
New Comment:
I can reproduce this with latest CVS of 5.1, using 35701 as the limit.
Dmitry, any ideas?
Previous Comments:
------------------------------------------------------------------------
[2005-11-08 20:14:03] pekka at photography-on-the dot net
Description:
------------
Weird recursive issue with 4.4.1
function test_recursive ($count=0) {
$count++;
if ($count >= 50) {
print "done";
return;
}
test_recursive ($count);
}
test_recursive();
works, but when $count is larger than 197 it crashes (Apache gives
error 500)
in PHP 5.0.4 this works ok with any $count
Reproduce code:
---------------
function test_recursive ($count=0) {
$count++;
if ($count >= 500) {
print "done";
return;
}
test_recursive ($count);
}
test_recursive();
Expected result:
----------------
done
Actual result:
--------------
Server: page not found (error 500), php crash.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35159&edit=1