The error $ HTTP_RAW_POST_DATA is deprecated, use the php: // input stream instead. "

Using PHP 5.6.2 on MAMP. I upgraded Laravel from 4.1 to 4.2 after fixing some errors and changes described in the Laravel update docs, I finally got this error:

"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."

Why? Where should I change any code? I do not use $HTTP_RAW_POST_DATA anywhere in my code.

I also changed my php.ini as indicated, the same error ... How can I solve this?

+5
source share
2 answers

The solution to this problem was editing the right php.ini . Then it worked.

+3
source

Please, use:

 Content-Type = application/x-www-form-urlencoded 

To solve this problem.

0
source

Source: https://habr.com/ru/post/1207599/


All Articles