Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57897 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85740 invoked from network); 17 Feb 2012 21:59:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2012 21:59:28 -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.210.42 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.210.42 mail-pz0-f42.google.com Received: from [209.85.210.42] ([209.85.210.42:37591] helo=mail-pz0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/B9-31836-DBDCE3F4 for ; Fri, 17 Feb 2012 16:59:26 -0500 Received: by dang27 with SMTP id g27so4260591dan.29 for ; Fri, 17 Feb 2012 13:59:23 -0800 (PST) Received-SPF: pass (google.com: domain of rasmus@lerdorf.com designates 10.68.241.39 as permitted sender) client-ip=10.68.241.39; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rasmus@lerdorf.com designates 10.68.241.39 as permitted sender) smtp.mail=rasmus@lerdorf.com Received: from mr.google.com ([10.68.241.39]) by 10.68.241.39 with SMTP id wf7mr34728665pbc.128.1329515963439 (num_hops = 1); Fri, 17 Feb 2012 13:59:23 -0800 (PST) Received: by 10.68.241.39 with SMTP id wf7mr28132145pbc.128.1329515963383; Fri, 17 Feb 2012 13:59:23 -0800 (PST) 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 r6sm6142921pbq.56.2012.02.17.13.59.22 (version=SSLv3 cipher=OTHER); Fri, 17 Feb 2012 13:59:22 -0800 (PST) Message-ID: <4F3ECDB8.6030405@lerdorf.com> Date: Fri, 17 Feb 2012 13:59:20 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: PHP internals X-Enigmail-Version: 1.3.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlfH/UoxVRzZ5Te9c2XTSFe5EqRQTW8kcb1idZIT4AwfvX0MpSIJMXE2tG5EzC+aJPzM/Q0 Subject: max_file_uploads INI_PERDIR From: rasmus@lerdorf.com (Rasmus Lerdorf) I'd like to add PHP_INI_PERDIR to max_file_uploads before 5.4.0 and also in the next 5.3 release. This setting is very similar in scope to max_input_vars and other POST-related limiters like upload_max_filesize, and post_max_size all of which are PHP_INI_SYSTEM|PHP_INI_PERDIR. The main reason is that our default for max_file_uploads is rather low and since we count empty uploads against this limit it is easy for apps to hit this. So if you have more than 20 type="file" fields in a form, even if the user only actually uploads a single file, it will hit this limit and fail. The change it trivial and since it eases a restriction and doesn't tighten one, it isn't going to break anything: http://svn.php.net/viewvc/php/php-src/trunk/main/main.c?r1=323245&r2=323296 Any objections from anyone? Stas on the 5.4.0 merge? Johannes on the 5.3.11? One example of pain this is currently causing: http://allinthehead.com/retro/349/the-curse-of-max_file_uploads -Rasmus