diff options
author | Anatol Belski <ab@php.net> | 2016-09-23 16:02:50 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-09-23 18:06:12 +0200 |
commit | f9a699f6c3aa7acea922242a0f14731f6b829742 (patch) | |
tree | 90218107489b8add649cffed76aef0abb6036e9f /main | |
parent | 9a2a45c1dfd5d693d8ae7b66cc977980339e5ba1 (diff) | |
download | php-git-f9a699f6c3aa7acea922242a0f14731f6b829742.tar.gz |
Fixed bug #73037 SoapServer reports Bad Request when gzipped
(cherry picked from commit 410c68788ae4826807e8ced3f4a02e676142b22a)
Diffstat (limited to 'main')
-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 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; |