Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58933 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91885 invoked from network); 14 Mar 2012 19:42:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2012 19:42:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 74.125.83.42 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 74.125.83.42 mail-ee0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:64768] helo=mail-ee0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/B6-51575-7B4F06F4 for ; Wed, 14 Mar 2012 14:42:48 -0500 Received: by eekb57 with SMTP id b57so1332684eek.29 for ; Wed, 14 Mar 2012 12:42:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding :x-gm-message-state; bh=AvIOMAR9D/E7K9OCDbSsnPnOBBuunw0da/qF4sNVdvU=; b=k8LJVwTeT3TaVA+9hHXH4PFZ8sdz2KE+y8BTwZ8QR487XAoYZIL/pVqyvSsjMPU/Op JnK1zoKFDmPEUePtjsGe9dX45pzWEV3ADjzyj8+vMHR6ihWXBh1lGUdHCovqPv+AgRcn 8YVnYgeial97cuCXe1m9IZTjktyK9JVnag4Q9hHLrH+rQyJHTBr0g3Ub0fyOCeBEswA2 msyzFtHF3ZBjyFwaNQKzTRcUi+zRmXCZjOvJ9irOCrs0Z8y9ClOjEaNg4fXvSai6wWcb UFZqF1Jp+b7Ypo8rmJ3ZPsGj0GualvmJFC+TYzerFKYY3SKH/VG/6ZaiBVxh7GhlVOgE BeSw== Received: by 10.229.136.77 with SMTP id q13mr1294320qct.154.1331754164803; Wed, 14 Mar 2012 12:42:44 -0700 (PDT) Received: from [192.168.200.5] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPS id i19sm76652qad.19.2012.03.14.12.42.42 (version=SSLv3 cipher=OTHER); Wed, 14 Mar 2012 12:42:43 -0700 (PDT) Message-ID: <4F60F4B1.5010407@lerdorf.com> Date: Wed, 14 Mar 2012 12:42:41 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: PHP internals X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkMDd0CkXQCYcM/kwG6/eJHMEd9bjUlOD7YANsVZ+oqEWHhxF2s/wbQqPoAabqT2AsYAMvY Subject: Let parse_str() parse more than max_input_vars args From: rasmus@lerdorf.com (Rasmus Lerdorf) 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