From 410c68788ae4826807e8ced3f4a02e676142b22a Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 23 Sep 2016 16:02:50 +0200 Subject: Fixed bug #73037 SoapServer reports Bad Request when gzipped --- main/streams/streams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/streams/streams.c') 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; -- cgit v1.2.1