]> granicus.if.org Git - php/commitdiff
- Adding enable_post_data_reading to php.ini-*
authorGustavo André dos Santos Lopes <cataphract@php.net>
Thu, 16 Dec 2010 11:27:17 +0000 (11:27 +0000)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Thu, 16 Dec 2010 11:27:17 +0000 (11:27 +0000)
php.ini-development
php.ini-production

index de7d41e6519d08c077c393dd53d41f82f5f88845..c7ccbce1fb81de68ca557c260d85caf5078522ce 100644 (file)
@@ -636,7 +636,18 @@ register_argc_argv = Off
 ; http://php.net/auto-globals-jit
 auto_globals_jit = On
 
+; 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.
+; http://php.net/enable-post-data-reading
+;enable_post_data_reading = Off
+
 ; Maximum size of POST data that PHP will accept.
+; Its value may be 0 to disable the limit. It is ignored if POST data reading
+; is disabled through enable_post_data_reading.
 ; http://php.net/post-max-size
 post_max_size = 8M
 
@@ -685,7 +696,8 @@ default_mimetype = "text/html"
 ;default_charset = "UTF-8"
 
 ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
-; to disable this feature.
+; to disable this feature. 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 = On
 
index 90e79e8756cb1988121c925e740431aa97f7c9cf..7c32d27c61b2781bd6f8643aba996595d36750f2 100644 (file)
@@ -636,7 +636,18 @@ register_argc_argv = Off
 ; http://php.net/auto-globals-jit
 auto_globals_jit = On
 
+; 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.
+; http://php.net/enable-post-data-reading
+;enable_post_data_reading = Off
+
 ; Maximum size of POST data that PHP will accept.
+; Its value may be 0 to disable the limit. It is ignored if POST data reading
+; is disabled through enable_post_data_reading.
 ; http://php.net/post-max-size
 post_max_size = 8M
 
@@ -685,7 +696,8 @@ default_mimetype = "text/html"
 ;default_charset = "UTF-8"
 
 ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
-; to disable this feature.
+; to disable this feature. 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 = On