Re: [RFC] Slim POST data (was: PHP-5.6 and $HTTP_RAW_POST_DATA)

From: Date: Tue, 19 Nov 2013 11:06:13 +0000
Subject: Re: [RFC] Slim POST data (was: PHP-5.6 and $HTTP_RAW_POST_DATA)
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-70201@lists.php.net to get a copy of this message
On Tue, Nov 19, 2013 at 11:48 AM, Michael Wallner <mike@php.net> wrote: > On 19 November 2013 11:22, Alexey Zakhlestin <indeyets@gmail.com> wrote: > > > We can't break BC in 5.x, so the way to go is: > > > > 1. implement underlying changes > > It already is in master since a few weeks. > > > 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. > > > 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. > > > 5. remove HTTP_RAW_POST_DATA support in master (thinking about 6.x) > > It already is in master. > > I guess Alexey is trying to say that we could deprecate the usage of $HTTP_RAW_POST_DATA in 5.6, but this feature should go(stay) to master(and target the next major) as it breaks BC, which we can't do in a minor version. And while I agree with it, let's see what others think. -- Ferenc Kovács @Tyr43l - http://tyrael.hu

« previous php.internals (#70201) next »