mercredi 14 septembre 2016

$HTTP_RAW_POST_DATA warning still showing up in POST response after setting 'always_populate_raw_post_data' in php.ini to -1

So i am using PHP 5.6 and building a Laravel 5.1 API and also building an android app.

When i try sending a post request from the android emulator i get the following message along with the proper data/response:

Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. 
To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0
Warning: Cannot modify header information - headers already sent in Unknown on line 0.

I know why the error is showing up, but i cant seem to fix it.

The normal fix would be to set always_populate_raw_post_data to -1 but that is not working.

I am thinking of upgrading to a later version of php where $HTTP_RAW_POST_DATA has been removed.

any help/advice would be appreciated.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire