Bug #67198 [Com]: REGRESION php://input
| From: | tyrael@php.net | Date: | Mon, 05 May 2014 11:54:36 +0000 |
| Subject: | Bug #67198 [Com]: REGRESION php://input | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185634@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
Comment by: tyrael@php.net
Reported by: bugzilla77 at gmail dot com
Summary: REGRESION php://input
Status: Assigned
Type: Bug
Package: Streams related
Operating System: win 7
PHP Version: 5.6.0beta2
Assigned To: mike
Block user comment: N
Private report: N
New Comment:
nope, I was able to reproduce when building with --enable-maintainer-zts (which should be an obvious
thing to do as it is a windows report).
Previous Comments:
------------------------------------------------------------------------
[2014-05-05 11:54:23] bugzilla77 at gmail dot com
PS When enable_post_data_reading = On 'php://input' stream consist POST data.
------------------------------------------------------------------------
[2014-05-05 11:52:45] bugzilla77 at gmail dot com
I use:
Apache 2.4.9 VC11
module php5apache2_4.dll
on win 7 32bit
------------------------------------------------------------------------
[2014-05-05 11:49:11] tyrael@php.net
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!
------------------------------------------------------------------------
[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