#39188 [Com]: reading php://input hangs with IIS

From: Date: Tue, 01 Sep 2009 12:57:43 +0000
Subject: #39188 [Com]: reading php://input hangs with IIS
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-141795@lists.php.net to get a copy of this message
 ID:               39188
 Comment by:       arturm at union dot com dot pl
 Reported By:      php at nineberry dot de
 Status:           Feedback
 Bug Type:         IIS related
 Operating System: Win32
 PHP Version:      5.1.6
 Assigned To:      dmitry
 New Comment:

OK, my test is similar (hangs on submit):

<?php

if($_SERVER["REQUEST_METHOD"] == "POST")
{
header("Content-type: text/xml");
$s = file_get_contents("php://input");
echo <<<EOT
<xml/>
EOT;
}
else
{
	echo <<<EOT
<form method="post" action="">
	<input type="text" value="abc">
	<input type="submit" name="s1" value="Submit">
</form>
EOT;
}
?>

Bug occured on:
1. Windows XP, PHP 5.2.10, IIS 5.1, CGI
2. Windows 2003, PHP 5.2.6, IIS 5.1, CGI
Didn't occured on:
Windows 2008, PHP 5.2.5 (x64), IIS 6, ISAPI


Previous Comments:
------------------------------------------------------------------------

[2009-09-01 12:18:59] arturm at union dot com dot pl

I am trying to isolate bug. For this moment I noticed that content-type
header plays important role. Only problem is with
application/x-www-form-urlencoded. When request is text/xml it is OK.

------------------------------------------------------------------------

[2009-08-31 16:41:16] pajoye@php.net

An example to reproduce the issue was asked. Saying that the bug is
still here does not help.

------------------------------------------------------------------------

[2009-08-31 15:51:29] arturm at union dot com dot pl

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).

------------------------------------------------------------------------

[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).

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/39188

-- 
Edit this bug report at http://bugs.php.net/?id=39188&edit=1



Thread (11 messages)

« previous php.bugs (#141795) next »