]> granicus.if.org Git - php/commitdiff
Fix for Bug #28964 fread "greedy" behaviour
authorWez Furlong <wez@php.net>
Tue, 29 Jun 2004 21:51:53 +0000 (21:51 +0000)
committerWez Furlong <wez@php.net>
Tue, 29 Jun 2004 21:51:53 +0000 (21:51 +0000)
main/streams/streams.c

index 46c5d16b2d0a8ded49d363b3b9bfafbdc3789080..3ba75a0845688a5858a47c3c1b606b70b993ab5a 100755 (executable)
@@ -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) {