mirror of
https://github.com/php/php-src.git
synced 2026-04-27 18:23:26 +02:00
Fix for Bug #28964 fread "greedy" behaviour
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user