Opened 8 years ago

Closed 8 years ago

#2734 closed defect (fixed)

always_populate_raw_post_data should default to -1 in php.ini

Reported by: jng Owned by: jng
Priority: low Milestone: 3.1
Component: General Version: 3.1.0
Severity: trivial Keywords:
Cc: External ID:

Description

Was testing mapguide-rest against MGOS 3.1 beta 2 to see what needs fixing and found this warning a lot in various responses:

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

This is due to a bad default value for always_populate_raw_post_data in php.ini

We should ship a default php.ini with this value set to -1

https://www.bram.us/2014/10/26/php-5-6-automatically-populating-http_raw_post_data-is-deprecated-and-will-be-removed-in-a-future-version/

Change History (1)

comment:1 by jng, 8 years ago

Resolution: fixed
Status: newclosed

Fixed trunk (r9027, r9028), 3.1 (r9025, r9026), 3.0 (r9029, r9030), 2.6 (r9031, r9032)

Note: See TracTickets for help on using tickets.