|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-07 21:46 UTC] sniper@php.net
[2005-03-15 01:00 UTC] php-bugs at lists dot php dot net
[2009-08-31 15:08 UTC] arturm at union dot com dot pl
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 05:00:01 2025 UTC |
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