summaryrefslogtreecommitdiff
path: root/main/streams/streams.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-09-23 18:46:51 +0200
committerAnatol Belski <ab@php.net>2016-09-23 18:46:51 +0200
commit4685297f05d96eddcadc5eac4ce24d9b47afa03b (patch)
treec6743386244df587f7938fc1c281bba402d0d50a /main/streams/streams.c
parentf9936000dad3fcdba768766a767297834928186a (diff)
parent075aa911ff8c11620f1a5633c1a107c09919794f (diff)
downloadphp-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.c2
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;