ID: 39188
Comment by: arturm at union dot com dot pl
Reported By: php at nineberry dot de
Status: No Feedback
Bug Type: IIS related
Operating System: Win32
PHP Version: 5.1.6
Assigned To: dmitry
New Comment:
Bug is still there: PHP 5.2.10, XP Pro, IIS, CGI - C# client (timeout
on req.GetResponse(), content type is
application/x-www-form-urlencoded).
Previous Comments:
------------------------------------------------------------------------
[2006-10-31 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2006-10-23 05:26:17] dmitry@php.net
The provided example works fine (at least with latest php-5.2 snapshot
and FastCGI SAPI).
------------------------------------------------------------------------
[2006-10-18 19:19:02] php at nineberry dot de
Can't test. Can't access server but by FTP.
------------------------------------------------------------------------
[2006-10-18 19:10:29] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
[2006-10-18 19:01:28] php at nineberry dot de
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 this bug report at http://bugs.php.net/?id=39188&edit=1