Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58947 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21640 invoked from network); 14 Mar 2012 23:38:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2012 23:38:36 -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 209.85.161.170 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:36288] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/14-32926-BFB216F4 for ; Wed, 14 Mar 2012 18:38:36 -0500 Received: by ggmb2 with SMTP id b2so2833988ggm.29 for ; Wed, 14 Mar 2012 16:38:32 -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:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=UbNmd7O9b02T7UfioV1JJvQJye7Lnnlx3GmUj/CXLbs=; b=AI8w8oewcwSKKNCR7HQv82AEzqq32V1KEcRYVXmllaNQsk/nM1tRyf7io0kdKvQFwQ WCcPXxnA7H3/Tod8TK6C95eM5CZjNsMmJkbdnRhMFkc7VK43pBzhwvf3UfkNPH/jr9yk xNoRWI5G38FTWtpllvV1q/XtK52EE3wA4FAe116CuYgTTGzPE+hC/frMka79UrAYK2A3 61oIJctD5vW8YA1Ud6C0PDOAeKN1lokjuO+AGIiXJQB9xNsgFBY5ohXbi3knH3h2Xcvd trTv8nsQ7Pdo8Sn9JEAEn8OGdSP/Cfxct53YP0Xr5YeeUle2Zq6LpPqYr4AbdujcVEJb pvIg== Received: by 10.229.69.30 with SMTP id x30mr1546592qci.97.1331768312587; Wed, 14 Mar 2012 16:38:32 -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 w9sm1058612qao.0.2012.03.14.16.38.31 (version=SSLv3 cipher=OTHER); Wed, 14 Mar 2012 16:38:31 -0700 (PDT) Message-ID: <4F612BF6.3070301@lerdorf.com> Date: Wed, 14 Mar 2012 16:38:30 -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: Ilia Alshanetsky CC: PHP internals References: <4F60F4B1.5010407@lerdorf.com> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmDagN/J+XgCymRfFn+sKT9ahSrKqa4ELffjAOTuShteKqzgmxlaX+gdu+aU8jYWsQ8acdx Subject: Re: [PHP-DEV] Let parse_str() parse more than max_input_vars args From: rasmus@lerdorf.com (Rasmus Lerdorf) On 03/14/2012 04:27 PM, Ilia Alshanetsky wrote: > Sounds like a least dangerous way of solving the problem to me. The > only issue I can see with this fix is what would happen is if after > the "PG(max_input_vars) = max_vars; " > call the request got interrupted in persistent environment such as > Apache (mod_php). Wouldn't that means that for subsequent requests the > value would not be equal to the one set by the user? Yes, it would need a zend_alter_ini_entry_ex() call there. The patch wasn't complete, just a quick hack. But it would still have an out-of-context error message when you exceed it. At least with a userspace ini_set() the error would make sense. -Rasmus