Browse Source

Fix for Bug #28964 fread "greedy" behaviour

PHP-5.0
Wez Furlong 22 years ago
parent
commit
8f435013ff
  1. 3
      main/streams/streams.c

3
main/streams/streams.c

@ -590,6 +590,9 @@ PHPAPI size_t _php_stream_read(php_stream *stream, char *buf, size_t size TSRMLS
/* EOF, or temporary end of data (for non-blocking mode). */
break;
}
/* just break anyway, to avoid greedy read */
break;
}
if (didread > 0) {

Loading…
Cancel
Save