diff options
author | Anatol Belski <ab@php.net> | 2016-09-23 18:46:51 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-09-23 18:46:51 +0200 |
commit | 4685297f05d96eddcadc5eac4ce24d9b47afa03b (patch) | |
tree | c6743386244df587f7938fc1c281bba402d0d50a /main/streams/streams.c | |
parent | f9936000dad3fcdba768766a767297834928186a (diff) | |
parent | 075aa911ff8c11620f1a5633c1a107c09919794f (diff) | |
download | php-git-4685297f05d96eddcadc5eac4ce24d9b47afa03b.tar.gz |
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
Revert "Fixed bug #73037 SoapServer reports Bad Request when gzipped"
Diffstat (limited to 'main/streams/streams.c')
-rw-r--r-- | 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 e440049c93..7ad2483da1 100644 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -1282,7 +1282,7 @@ PHPAPI int _php_stream_seek(php_stream *stream, zend_off_t offset, int whence) } break; case SEEK_SET: - if (offset >= stream->position && + if (offset > stream->position && offset <= stream->position + stream->writepos - stream->readpos) { stream->readpos += offset - stream->position; stream->position = offset; |