ID:               30722
 Updated by:       [EMAIL PROTECTED]
 Reported By:      corey at bbqguys dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         CGI related
 Operating System: Windows 2000
 PHP Version:      5.0.2
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip




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

[2004-11-08 21:06:38] corey at bbqguys dot com

Description:
------------
When I try to access php://input from fopen or fread or
file_get_contents or any other way I can think of, the script hangs up
until it times out. It almost seems like eof is never being reached,
but there is some wierdness to that theory. If I try to dump the
contents of php://input to a log file, the log file is written with the
contents of php://input, but the next line of code is never reached.
However, if I use HTTP_RAW_POST_DATA, the next line of code is reached
with blazing speed. I am running  IIS5, win2k, php5.0.2 in CGI mode,
gd2, mysql, curl, mcrypt, and PEAR installed.

Reproduce code:
---------------
$data = fopen("php://input", "r");
while (!feof($data)) {
        $result .= fread($data, 4096);
}

OR

$data = file_get_contents("php://input");

Expected result:
----------------
$data winds up containing the contents of php://input and control is
returned to the script



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


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

Reply via email to