enable_post_data_reading

INIAdded in PHP 5.4

enable_post_data_reading — Whether PHP will read the POST data. This option is enabled by default. Most likely, you won't want to disable this option globally. It causes $_POST and $_FILES to always be empty; the only way you will be able to read the POST data will be through the php://input stream wrapper. This can be useful to proxy requests or to process the POST data in a memory efficient fashion.

Default value On
Development value Off
Production value Off

Modifiability: INI_PERDIR|INI_SYSTEM - The enable_post_data_reading INI directive can be set per-directory (php.ini, .htaccess, httpd.conf, .user.ini, etc.) or globally from php.ini files. However, it cannot be configured with ini_set calls.

PHP 5.3
PHP 5.4
Added
PHP 5.5-5.6
PHP 7
PHP 8.0
PHP 8.1
PHP 8.2
PHP 8.3
PHP 8.4
PHP 8.5
enable_post_data_reading = 1

Changes to the enable_post_data_reading INI

PHP 5.4

  • INI directive added

enable_post_data_reading INI Availability

PHP VersionAvailability
PHP 8.5Future Release Yes
PHP 8.4Upcoming Release Yes
PHP 8.3Supported (Latest) Yes
PHP 8.2Supported Yes
PHP 8.1Security-Fixes Only Yes
PHP 8.0Unsupported Yes
PHP 7.4Unsupported Yes
PHP 7.3Unsupported Yes
PHP 7.2Unsupported Yes
PHP 7.1Unsupported Yes
PHP 7.0Unsupported Yes
PHP 5.6Unsupported Yes
PHP 5.5Unsupported Yes
PHP 5.4Unsupported Yes
PHP 5.3Unsupported No