diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2011-06-05 21:57:01 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2011-06-05 21:57:01 +0000 |
| commit | d846d0e80aa0822ab3f59eea9e85413c4d357748 (patch) | |
| tree | e91ac9752f932ae2476cf9889b89f97ec165c03a /main/streams/streams.c | |
| parent | 10da251565e80d9030a6c9609e91fda8c7197ef5 (diff) | |
| download | php-git-d846d0e80aa0822ab3f59eea9e85413c4d357748.tar.gz | |
Fixed bug #51997 (SEEK_CUR with 0 value, returns a warning).
Diffstat (limited to 'main/streams/streams.c')
| -rwxr-xr-x | main/streams/streams.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/streams.c b/main/streams/streams.c index 5029f5cd02..eb2eb07082 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -1184,7 +1184,7 @@ PHPAPI int _php_stream_seek(php_stream *stream, off_t offset, int whence TSRMLS_ } /* emulate forward moving seeks with reads */ - if (whence == SEEK_CUR && offset > 0) { + if (whence == SEEK_CUR && offset >= 0) { char tmp[1024]; size_t didread; while(offset > 0) { |
