Re: Suggestion to increase the max_input_nesting_level

From: Date: Tue, 09 Sep 2008 13:39:35 +0000
Subject: Re: Suggestion to increase the max_input_nesting_level
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-40405@lists.php.net to get a copy of this message
Hm... Actually at that time I was not able to reproduce the limit, and I wrote a fix that worked well and reduced the number of nest calls. Maybe the guy that notified me was using it. Here is the changeset I did to fix the issue: http://trac.phpdoctrine.org/changeset/4397 But right now I'll have to go back to add some scheduled support, and I was afraid to fall into the same situation again, and I messaged the list. @Derick: If this is a xdebug specific, is there a way to you increase this number? Regards, On Tue, Sep 9, 2008 at 10:19 AM, Scott MacVicar <scottmac@php.net> wrote: > 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.org >>> >> >> >> > -- Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9166-6902 MSN: guilhermeblanco@hotmail.com URL: http://blog.bisna.com Rio de Janeiro - RJ/Brazil

« previous php.internals (#40405) next »