Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58936 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98594 invoked from network); 14 Mar 2012 20:32:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2012 20:32:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.46 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.46 mail-yw0-f46.google.com Received: from [209.85.213.46] ([209.85.213.46:61097] helo=mail-yw0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/00-32926-840016F4 for ; Wed, 14 Mar 2012 15:32:09 -0500 Received: by yhmm54 with SMTP id m54so2264648yhm.19 for ; Wed, 14 Mar 2012 13:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=FVCYy7JKPF6hE1x9gC0C4pjPYQG6EZaTRuTx4vRX77s=; b=x4brN6dIdAy8F2/myuu7848/kptYWSv9rDSI0Kb0IG/kLA9yFlwJNmFA+l7mFzuZKy R7TJfaAgnlH8uJQQ7D2cou65FAOfiqrb9vESOfFrKeoGpv+oM8lRe58zflYcJW0vjNkz 51vwyEULLmvZeq+KkE8aSFomBzT9LSJ0HCKQAsX06LU//NCiI7j8TDeJIfe8zAy5XWO0 ODuF7oacF5CTZvnS4wvWDMmkN60bsCuXDR1PbjFE0bdce7QTJFWO57KOB0K/NXfi1+sw krejPq1j7GSakiSSQFutIIbSMgtdENPdB+RvEIPxGhJa/+fbf5oEAu4h4/Gz7TCZbcWr 1YUg== MIME-Version: 1.0 Received: by 10.236.145.193 with SMTP id p41mr4620848yhj.124.1331757125444; Wed, 14 Mar 2012 13:32:05 -0700 (PDT) Received: by 10.146.221.14 with HTTP; Wed, 14 Mar 2012 13:32:05 -0700 (PDT) In-Reply-To: <4F60F4B1.5010407@lerdorf.com> References: <4F60F4B1.5010407@lerdorf.com> Date: Wed, 14 Mar 2012 21:32:05 +0100 Message-ID: To: Rasmus Lerdorf Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Let parse_str() parse more than max_input_vars args From: pierre.php@gmail.com (Pierre Joye) hi Rasmus, As the ini_all option sounds appealing, I can imagine ISPs willing to do not allow their users to change this value, and that's something I would not allow random users either. I'd to go with the optional argument, adding a clear in the documentation about the confusing error message. Cheers, On Wed, Mar 14, 2012 at 8:42 PM, Rasmus Lerdorf wrote: > It is somewhat unintuitive that parse_str() is subject to the > max_input_vars limitation and there are sites that use parse_str() to > parse things that aren't directly coming from user query args. > There arr two ways to solve this. We could add an optional max_vars arg > something along these lines: > > https://gist.github.com/2038870 > > The other way to solve this would be to make max_input_vars PHP_INI_ALL > and then just let people ini_set() their way around the limit. > > The one drawback with the optional arg approach is that since > parse_str() is a thin layer on top of the query string parser, the error > if you exceed the passed max_vars talks about the ini setting which in > this case wouldn't really be correct and fixing that would be complicated. > > -Rasmus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org