From: dasak36 at comcast dot net Operating system: Windows XP pro PHP version: 4.3.2 PHP Bug Type: Sockets related Bug description: feof() never reports false
Description: ------------ I read a thread on this here at bugs.php.net. It is the only one I can find of its kind. The problem I am having is this. Whenever I am reading the information from a socket like in the below code(which i got from the other post here): $fp = fsockopen("localhost", 25); stream_set_blocking($fp, false); fwrite($fp, "QUIT\r\n"); while(!feof($fp)) { $data = fgets($fp); var_dump($data); } echo "\nAll done\n"; The page hangs because feof($fp) never returns true. I've been messing with this for a while but I cannot get this to work. PHP version 4.3.2. Thanks, Tommy PS: after I submitted this the site gave me other posts to check. Some have the similar problem, but as before none were really answered. -- Edit bug report at http://bugs.php.net/?id=24862&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24862&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24862&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24862&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24862&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24862&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24862&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24862&r=support Expected behavior: http://bugs.php.net/fix.php?id=24862&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24862&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24862&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24862&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24862&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24862&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24862&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24862&r=gnused