mirror of
https://github.com/php/php-src.git
synced 2024-09-24 11:27:28 +00:00
fix position handling
This commit is contained in:
parent
d661fa4b46
commit
3ee8172674
@ -519,8 +519,10 @@ PHPAPI size_t _php_stream_read(php_stream *stream, char *buf, size_t size TSRMLS
|
||||
didread += toread;
|
||||
}
|
||||
|
||||
if (size == 0)
|
||||
if (size == 0) {
|
||||
stream->position += didread;
|
||||
return didread;
|
||||
}
|
||||
|
||||
if (stream->flags & PHP_STREAM_FLAG_NO_BUFFER || stream->chunk_size == 1) {
|
||||
if (stream->filterhead) {
|
||||
|
Loading…
Reference in New Issue
Block a user