Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40404 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52710 invoked from network); 9 Sep 2008 13:19:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Sep 2008 13:19:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=scottmac@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=scottmac@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 193.227.246.108 as permitted sender) X-PHP-List-Original-Sender: scottmac@php.net X-Host-Fingerprint: 193.227.246.108 ip246-108-v193.static.x-ip.net Received: from [193.227.246.108] ([193.227.246.108:43594] helo=lovelace.midden.org.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/AC-23799-CF776C84 for ; Tue, 09 Sep 2008 09:19:58 -0400 Received: from office.vbulletin.com ([217.155.246.60] helo=[10.0.0.116]) by lovelace.midden.org.uk with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Kd38D-0004F9-KZ; Tue, 09 Sep 2008 14:19:48 +0100 Message-ID: <48C677EA.7000707@php.net> Date: Tue, 09 Sep 2008 14:19:38 +0100 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Guilherme Blanco CC: Derick Rethans , Stan Vassilev | FM , PHP Internals References: <48C5CDF8.3060108@zend.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -4.4 X-Spam_Report: Spam detection software, running on the system "lovelace.midden.org.uk", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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); ' [...] Content analysis details: (-4.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.0 AWL AWL: From: address is in the auto white-list Subject: Re: [PHP-DEV] Suggestion to increase the max_input_nesting_level From: scottmac@php.net (Scott MacVicar) 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 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 >> > > >