Hi, Got some troubles since a long time ago with fread() on blocking streams, and found a bug with fread() when reading a blocking stream with a buffer too small to contain all the received data.
http://bugs.php.net/bug.php?id=51056 I've made a patch on PHP_5_3, and wish to hear about it (and if it's good, wish to see it applied). http://ookoo.org/svn/snip/php-PHP_5_3-streams-socket-blocking-nostuck.patch The change should be pretty much the same for PHP_5_2 (which exhibits the same bug). Test script is available in the bug report to see that the fix is indeed effective. Mark -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php