: Bug #67198 :: php://input regression
[2014-05-03 22:52 UTC] 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]
[2014-05-05 11:49 UTC] tyrael@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: mike
[2014-05-05 11:49 UTC] tyrael@php.net
[2014-05-05 11:52 UTC] bugzilla77 at gmail dot com
[2014-05-05 11:54 UTC] bugzilla77 at gmail dot com
[2014-05-05 11:54 UTC] tyrael@php.net
[2014-05-05 14:28 UTC] tyrael@php.net
[2014-05-06 09:29 UTC] mike@php.net
-Summary: REGRESION php://input +Summary: php://input regression
[2014-05-06 10:37 UTC] mike@php.net
-Status: Assigned +Status: Closed