Re: Suggestion to increase the max_input_nesting_level

From: Date: Tue, 09 Sep 2008 13:19:38 +0000
Subject: Re: Suggestion to increase the max_input_nesting_level
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-40404@lists.php.net to get a copy of this message
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 <derick@php.net> 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.orgo >> J=³ 3É„Rbº³2e >> > > >

« previous php.internals (#40404) next »