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 18:06:12 +0200
commitf9a699f6c3aa7acea922242a0f14731f6b829742 (patch)
tree90218107489b8add649cffed76aef0abb6036e9f /main/streams/streams.c
parent9a2a45c1dfd5d693d8ae7b66cc977980339e5ba1 (diff)
downloadphp-git-f9a699f6c3aa7acea922242a0f14731f6b829742.tar.gz
Fixed bug #73037 SoapServer reports Bad Request when gzipped
(cherry picked from commit 410c68788ae4826807e8ced3f4a02e676142b22a)
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 4e00cd1be3..4446f9ecd5 100644
--- a/main/streams/streams.c
+++ b/main/streams/streams.c
@@ -1289,7 +1289,7 @@ PHPAPI int _php_stream_seek(php_stream *stream, off_t offset, int whence TSRMLS_
}
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;