Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40405 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57917 invoked from network); 9 Sep 2008 13:39:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Sep 2008 13:39:43 -0000 Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.200.168 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.200.168 wf-out-1314.google.com Received: from [209.85.200.168] ([209.85.200.168:42541] helo=wf-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/BD-23799-B9C76C84 for ; Tue, 09 Sep 2008 09:39:41 -0400 Received: by wf-out-1314.google.com with SMTP id 26so2084785wfd.26 for ; Tue, 09 Sep 2008 06:39:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=EuwvCkZnoccB0xeU/mgw7cysHUAazDO8hebA/Tc34KE=; b=XmObMouJQyu1qmGF4//SvHyBcc1SD/2MMlaAW/BxB7qBZkV0Ls5RFah1Y2GLQbalxl uRzjr2RJy9FcCNGExaWl6AE8DNOmm9GvtC5AdeieYf2ig3fKpVXmtjVy2VRCUNgQ+P/i aU3DH8UhvYrnqncR2tkGOLeYorKN2tCX07ukI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Lnd3L8FjUUZ+KleOSWzAesJwQx2sLjQywvf9S8r94grFfx3wp3rgz43oicSmUUMJkJ 42bxNwObVk58lwgm0b+dIPvaD7Bfjet10HYDeAcZyuOI1XU/W/OK+qcS3zKKlzoqsoNR Rwkhqeeh+EoSFo2XctZppoaxPus4gs6Cc09FI= Received: by 10.141.52.5 with SMTP id e5mr9742689rvk.10.1220967575492; Tue, 09 Sep 2008 06:39:35 -0700 (PDT) Received: by 10.141.63.14 with HTTP; Tue, 9 Sep 2008 06:39:35 -0700 (PDT) Message-ID: Date: Tue, 9 Sep 2008 10:39:35 -0300 To: "Scott MacVicar" Cc: "Derick Rethans" , "Stan Vassilev | FM" , "PHP Internals" In-Reply-To: <48C677EA.7000707@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48C5CDF8.3060108@zend.com> <48C677EA.7000707@php.net> Subject: Re: [PHP-DEV] Suggestion to increase the max_input_nesting_level From: guilhermeblanco@gmail.com ("Guilherme Blanco") 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 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 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