Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51052 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50562 invoked from network); 16 Dec 2010 14:25:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Dec 2010 14:25:16 -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; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.45 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.214.45 mail-bw0-f45.google.com Received: from [209.85.214.45] ([209.85.214.45:48803] helo=mail-bw0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/52-36789-B412A0D4 for ; Thu, 16 Dec 2010 09:25:15 -0500 Received: by bwz16 with SMTP id 16so3906593bwz.32 for ; Thu, 16 Dec 2010 06:25:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=B0VD6CTn1NDQMd6KzliGaUgdXhGBY4U4DjWQDH3m2hE=; b=evnQhaNA1MttYBVBOkhlN9KnnpgolHHOG69bHLqsEHiJv6YjN47bKY07LOf5MoPbok AtL35XTBpRQM518ox/H62zfi4JH+qm1c6cIcMyttbS3Oaj6DGA6iTahOWgm+C7MUN/mR 5Ffd/CWnlW507WULihKNBlyoVmjln0+bZEB+c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=GkDFOg59VwNmuGll9aK0MBl4X81QILrEJiYqyYOqf6wyXLHUvQWzlAwIuvlI7S2Efu AYev03I+nFYQMQF3N2bkdZMy0cTevoTmOMe+ITEzvtFCMUYnejTCWD/DuM1kfndd39wp T+UxvSJViu5SoDAwxFp/5lfsWir7Hg7a0yfbQ= MIME-Version: 1.0 Received: by 10.204.98.201 with SMTP id r9mr8553455bkn.37.1292509512086; Thu, 16 Dec 2010 06:25:12 -0800 (PST) Received: by 10.204.52.129 with HTTP; Thu, 16 Dec 2010 06:25:11 -0800 (PST) In-Reply-To: References: <6b2ba5e56d64910c49bb431ba1e36e17@nebm.ist.utl.pt> Date: Thu, 16 Dec 2010 15:25:11 +0100 Message-ID: To: "Matthew Weier O'Phinney" Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [PATCH] Add option to disable POST data processing From: pierre.php@gmail.com (Pierre Joye) On Thu, Dec 16, 2010 at 3:18 PM, Matthew Weier O'Phinney wrote: > On 2010-12-16, Pierre Joye wrote: >> There are a lot of values to disable POST completely. That's also why >> thinking the option you are proposing while keeping in mind the whole >> picture makes sense. >> >> There are different existing modes and one or two new modes (to be >> introduced, like disabling POST). Having a clean way to choose which >> mode should be used for a request makes sense and will improve the >> user experience. Right now and as shown the confusing discussions on >> IRC (or partially here) shows that the current situation is a mess. >> >> Again, I'm not saying that the idea behind this patch is bad, only >> that there is a better way to do it while being less confusing and >> making the whole thing cleaner to define. > > Seriously, disabling POST via a php.ini setting is considered a > "sensible" option? Has nobody ever developed a RESTful application? No comment. > The only way I can see such an action being "sensible" is if it's also > runtime configurable (i.e., via ini_set()) - otherwise I foresee a ton > of issues between security-paranoid sysadmins and developers when code > is pushed to production and simply stops working... > > I understand the rationale behind Pierre's assertion, but it's > incredibly short-sighted when you consider a full application, where > some actions need to accept raw POST/PUT data (man, would I love a $_PUT > superglobal...), others need to accept file uploads, and most others > need neither. I never said it should be a php.ini option, or only a php.ini option. But having 300 ways to do the same things, or to change options is bad. You should also keep in mind that even if it is a php.ini option, it should obviously be INI_PER_DIR and not system wild (that's what servers options exist, or better appropriate there if one wants to disable POST permanently and for all requests/URLs). All in all, I don't think adding a set of new ini settings for very specific and disputable features is not something good to do. If we need something to process file uploads more efficiently, then let do it in a good way (no, processing php://input manually is not what I can consider as a good way :). Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org