Mail App floods my Log with "$HTTP_RAW_POST_DATA is deprecated"

Hell everyone,

I do have Mail 0.6 enabled and it floods my NC logs with the following message:

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. at Unknown#0

Is this known and how bad is this warning? Is it just safe to set that variable in my php.ini?

Thank you,
Maulwurf

That is a warning from php itself. Yes, itโ€™s save to set it to -1

I having the same error.
Is there a solution?

just do, as the warning implies:

set the variable โ€œalways_populate_raw_post_data = -1โ€ in your php.ini

In my case, the line already existed, but was commented out. By removing the Comment and activating that variable, I managed to remove all the warnings.

I had to un-comment the line at three locations: /etc/php5/fpm/php.ini, /etc/php5/cli/php.ini, /etc/php5/cgi/php.ini to fixed this.

; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is

; to disable this feature and it will be removed in a future version.
; If post reading is disabled through enable_post_data_reading,
; $HTTP_RAW_POST_DATA is NOT populated.
; http://php.net/always-populate-raw-post-data
always_populate_raw_post_data = -1

โ€ฆ