|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-08 20:27 UTC] sniper@php.net
[2005-11-08 21:06 UTC] pekka at photography-on-the dot net
[2005-11-08 21:21 UTC] support at zend dot com
[2005-11-09 08:24 UTC] dmitry@php.net
[2005-11-09 11:12 UTC] iliaa@php.net
[2005-11-09 14:27 UTC] pekka at photography-on-the dot net
[2005-11-10 00:22 UTC] nlopess@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 10:00:02 2025 UTC |
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.