From: php at nineberry dot de Operating system: Win32 PHP version: 5.1.6 PHP Bug Type: IIS related Bug description: reading php://input hangs with IIS
Description: ------------ Posting to a php script makes the script hang reading from php://input on a server with IIS 6.0 / CGI Code works fine on Apache both on Linux and Win32. Code also works as expected, when "text/plain" is used as enctype in the HTML Form. Maybe related to #38488 ? Maybe stdin is not opened as binary any longer? Reproduce code: --------------- HTML Form: <html> <body> <form method="POST" action="1.php"> <input type="hidden" name="test" value="yyyy"> <input type="submit"> </form> </body> </html> PHP Code in 1.php: <?php // Read 1 char $f = fopen('php://input', 'rb'); $inpData = fread($f, 1); fclose ($f); echo($inpData); echo("Done"); ?> Expected result: ---------------- Expected Output: tDone Actual result: -------------- Constantly loading, CGI timeout after some minutes. -- Edit bug report at http://bugs.php.net/?id=39188&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39188&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39188&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39188&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39188&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39188&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39188&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39188&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39188&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39188&r=support Expected behavior: http://bugs.php.net/fix.php?id=39188&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39188&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39188&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39188&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39188&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39188&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39188&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39188&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39188&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39188&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39188&r=mysqlcfg