diff options
| author | Marcus Boerger <helly@php.net> | 2002-10-03 16:06:41 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2002-10-03 16:06:41 +0000 |
| commit | 3ee8172674bacdbd8e3fa6cf6b66eca5d386f014 (patch) | |
| tree | 63665d83feff53a5463bd5033a7024aa4c8760d4 | |
| parent | d661fa4b469f05819a1f26590d338884f8c8d5b8 (diff) | |
| download | php-git-3ee8172674bacdbd8e3fa6cf6b66eca5d386f014.tar.gz | |
fix position handling
| -rwxr-xr-x | main/streams.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/streams.c b/main/streams.c index 490d593a2f..5d2188f746 100755 --- a/main/streams.c +++ b/main/streams.c @@ -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) { |
