Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70204 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19253 invoked from network); 19 Nov 2013 12:32:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2013 12:32:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.43 as permitted sender) X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.215.43 mail-la0-f43.google.com Received: from [209.85.215.43] ([209.85.215.43:56113] helo=mail-la0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/A0-15197-A6A5B825 for ; Tue, 19 Nov 2013 07:32:43 -0500 Received: by mail-la0-f43.google.com with SMTP id n7so6014813lam.16 for ; Tue, 19 Nov 2013 04:32:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=IWP05DFjV8VDZaiJm9CwPJ7sZay8k1SsnO9ltN1CgrM=; b=stJZ/RLRT8DxjW+bCC/DmY8ZrAWCTivpiDy7b4l4D+c6WcpwGQ8TegfgPJy7krDyJT 2s4Pa4nCjvcj9opRtPfOuPUuU4f7iLmsRYBUkxsYFon25Wyre5/OwWc+dHAE6W2Be2oo z1TfmS2ySaVuBNez3VKdbdi+fE5hRcl6zbIKkxQrIPiKgkx9Q4pPYsq3+D+Jrdt1pQdX YSuaWyJXn0cCYbo9pd8y1qmcQezRSWb2c9rcLH618YCwvN/wd6VVaRB9Y+p29JI+henH ss3OrfBSmdv5wKpyhi87Bc/mom3AZle9uYfOkKV+gN+bBK3dW87oUjbxY3v2CSCfFWSM CxjA== X-Received: by 10.112.210.136 with SMTP id mu8mr17912175lbc.25.1384864360131; Tue, 19 Nov 2013 04:32:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.3.200 with HTTP; Tue, 19 Nov 2013 04:32:20 -0800 (PST) In-Reply-To: <528B5221.5050502@gmail.com> References: <528B3C03.5090804@gmail.com> <528B5221.5050502@gmail.com> Date: Tue, 19 Nov 2013 14:32:20 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=001a11c3c7043f757c04eb86dc77 Subject: Re: [PHP-DEV] [RFC] Slim POST data (was: PHP-5.6 and $HTTP_RAW_POST_DATA) From: arvids.godjuks@gmail.com (Arvids Godjuks) --001a11c3c7043f757c04eb86dc77 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2013/11/19 Alexey Zakhlestin > On 19.11.13, 14:48, Michael Wallner wrote: > > On 19 November 2013 11:22, Alexey Zakhlestin wrote= : > > > >> 2. restore backwards compatibility (HTTP_RAW_POST_DATA should be > >> auto-populated in all cases when it is populated now) > > > > That defeats the entire change. > > Not really. > We would still have a new implementation, which has a smaller diff to > master, so can be kept in sync. > > I know the stance against new ini-settings, but I wonder if we could > introduce an ini-setting which would be equivalent to python's > "from future import =E2=80=A6" > > If this is an option, then HTTP_RAW_POST_DATA could be optimized away > when this option is turned on (default is obviously "Off"). > > > >> 3. always_populate_raw_post_data should be introduced for BC purposes > >> > >> 4. Is it possible to detect usage of HTTP_RAW_POST_DATA and give > >> E_DEPRECATED while doing so? > > > > AFAICS no, it is a standard global variable. > > that leaves us with deprecation via documentation, then > > > -- > Alexey Zakhlestin > CTO at Grids.by/you > https://github.com/indeyets > PGP key: http://indeyets.ru/alexey.zakhlestin.pgp.asc > > My take on it is just to leave the always_populate_raw_post_data in place, because it is Off by default already. Modify the docs to reflect that instead of activating the HTTP_RAW_POST_DATA they should read the php://input stream. Make it clear that it is deprecated as of 5.6 and with next major release it will be removed. Maybe a deprecation warning could be displayed as a startup error, just like the timezone warnings? So that the scripts themselves are not affected, but you see a clear warning when launching PHP (I've fixed my timezones immediately when got the warning) My 0.02$ Arvids. --001a11c3c7043f757c04eb86dc77--