Bug #67198 [Opn->Asn]: REGRESION php://input

From: Date: Mon, 05 May 2014 11:49:11 +0000
Subject: Bug #67198 [Opn->Asn]: REGRESION php://input
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185631@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67198&edit=1 ID: 67198 Updated by: tyrael@php.net Reported by: bugzilla77 at gmail dot com Summary: REGRESION php://input -Status: Open +Status: Assigned Type: Bug Package: Streams related Operating System: win 7 PHP Version: 5.6.0beta2 -Assigned To: +Assigned To: mike Block user comment: N Private report: N New Comment: Mike, any chance you can test this report on windows? I couldn't reproduce it on Mac Os or linux, so I guess it is a windows specific problem. We can also try to ask Anatol for some help! Previous Comments: ------------------------------------------------------------------------ [2014-05-03 22:52:46] bugzilla77 at gmail dot com Description: ------------ Please SET php.ini: enable_post_data_reading = Off PHP.INI quote: "the only way you will be able to read the POST data will be through the php://input stream wrapper" PHP 5.6 b2 buggy PHP 5.5.12 OK Test script: --------------- <?php if(!ini_get('enable_post_data_reading')){ if($_SERVER['REQUEST_METHOD']=='POST'){ exit(file_get_contents('php://input')); } }else{ exit('Please SET php.ini: enable_post_data_reading = Off'); } ?> <script> ajax=new XMLHttpRequest() ajax.open('POST',location.href,false) // synchronous ajax.send('PASS') document.write(ajax.responseText) </script> Expected result: ---------------- PASS Actual result: -------------- [empty string] ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67198&edit=1

« previous php.bugs (#185631) next »