Bug #67197 [Opn->Dup]: REGRESION enable_post_data_reading

From: Date: Sat, 03 May 2014 23:09:51 +0000
Subject: Bug #67197 [Opn->Dup]: REGRESION enable_post_data_reading
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185609@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67197&edit=1 ID: 67197 Updated by: requinix@php.net Reported by: bugzilla77 at gmail dot com Summary: REGRESION enable_post_data_reading -Status: Open +Status: Duplicate Type: Bug Package: Streams related Operating System: win 7 PHP Version: 5.6.0beta2 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2014-05-03 22:22:02] bugzilla77 at gmail dot com Description: ------------ ; 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 READ CAREFULLY: the only way you will be able to read the POST data will be through the php://input stream wrapper Test script: --------------- set php.ini: enable_post_data_reading = Off and try to get POST data by file_get_contents('php://input') Expected result: ---------------- [POST data string] (PHP 5.5 works perfect) Actual result: -------------- empty string ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67197&edit=1

« previous php.bugs (#185609) next »