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

From: Date: Tue, 19 Nov 2013 11:57:21 +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-70203@lists.php.net to get a copy of this message
On 19.11.13, 14:48, Michael Wallner wrote:
> On 19 November 2013 11:22, Alexey Zakhlestin <indeyets@gmail.com> 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 …"

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



Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc

Thread (32 messages)

« previous php.internals (#70203) next »