Re: [RFC] Slim POST data (was: PHP-5.6 and $HTTP_RAW_POST_DATA)
| From: | Alexey Zakhlestin | Date: | Tue, 19 Nov 2013 12:45:53 +0000 |
| Subject: | Re: [RFC] Slim POST data (was: PHP-5.6 and $HTTP_RAW_POST_DATA) | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-70205@lists.php.net to get a copy of this message | ||
On 19.11.13, 16:32, Arvids Godjuks wrote:
> My take on it is just to leave the always_populate_raw_post_data in place,
> because it is Off by default already.
That's not enough. As far as I understand, even when this option is set
to "Off", HTTP_RAW_POST_DATA would be populated for unknown mime-types
see
http://docs.php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data
> 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.
+1
> 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)
+1
--
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
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc