HomeDevCentral

Disable legacy behavior always_populate_raw_post_data

Description

Disable legacy behavior always_populate_raw_post_data

Summary:
According Phabricator, this configuration triggers a warning:

always_populate_raw_post_data = 1
display_errors = 1
display_startup_errors = 1
error_reporting = -1

Warning text:

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.

Phabricator has raised a setup issue about this since 2016-08-26.

Some Docker images build on the top of this one use raw post
data, like rDNOTIF. But they already use php://input.

So it's safe to disable this.

References:

Fixes T1004.

Test Plan: Tested successfully on DevCentral.

Reviewers: Sandlayth, dereckson

Spies: Nasqueron Docker deployment squad

Tags: Docker images

Maniphest Tasks: T1004

Differential Revision: https://devcentral.nasqueron.org/D646

Details

Provenance
derecksonAuthored on Sep 2 2016, 21:41
Differential Revision
D646: Disable legacy behavior always_populate_raw_post_data
Parents
rDPHPFPMd146a8cad4fb: Upgrade PHP to 5.6.24
Branches
Unknown
Tags
Unknown
Tasks
T1004: Disable PHP always_populate_raw_post_data