summaryrefslogtreecommitdiff
path: root/main/streams/streams.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-09-23 16:02:50 +0200
committerAnatol Belski <ab@php.net>2016-09-23 16:02:50 +0200
commit410c68788ae4826807e8ced3f4a02e676142b22a (patch)
tree2ae8816846c4dd195bcd4ab77bbcd10fa28cf5d9 /main/streams/streams.c
parentfbf87a8082392ced4385b1a128cfe1caf7adf363 (diff)
downloadphp-git-410c68788ae4826807e8ced3f4a02e676142b22a.tar.gz
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 7ad2483da1..e440049c93 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;