There is no nesting limit, it recurses until it runs out of memory. Derick was saying that XDebug will add one, but other than that there isn't any.
dev/php53/sapi/cli/php -r 'function m($m) { echo ++$m . " "; m($m); } m(0); ' I ran that and I got bored when it got to 750,000 levels deep. Scott Guilherme Blanco wrote: > Derick, > > I do not have xdebug installed here. > That's why I thought it was something that could be changed, since > it's something too specific and afaik used only by xdebug. > > Regards, > > On Tue, Sep 9, 2008 at 3:19 AM, Derick Rethans <[EMAIL PROTECTED]> wrote: >> On Mon, 8 Sep 2008, Guilherme Blanco wrote: >> >>> Yeah... recursion depth. >>> >>> Sorry, I wrongly typed it. >>> >>> I think it may be cleaner now... >> Well, PHP itself doesn't protect against this, but my guess is that you >> have Xdebug running. Xdebug limits to 100 levels by default in order to >> prevent infinite recursion and crashes. Change the >> xdebug.max_nesting_level setting to something higher and you'd be good >> to go. >> >> regards, >> Derick >> -- >> HEAD before 5_3!: http://tinyurl.com/6d2esb >> http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org >> > > > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php