Patch bug73037.try.2.patch for SOAP related Bug #73037
Patch version 2016-09-16 13:52 UTC
Return to Bug #73037 |
Download this patch
Patch Revisions:
Developer: ab@php.net
diff --git a/ext/soap/soap.c b/ext/soap/soap.c
index 11c2d7c..d81b75f 100644
--- a/ext/soap/soap.c
+++ b/ext/soap/soap.c
@@ -1620,6 +1620,8 @@ PHP_METHOD(SoapServer, handle)
if (zf) {
php_stream_filter_append(&SG(request_info).request_body->readfilters, zf);
+ SG(request_info).request_body->flags &= ~PHP_STREAM_FLAG_NO_BUFFER;
+
} else {
php_error_docref(NULL, E_WARNING,"Can't uncompress compressed request");
zend_string_release(server);
diff --git a/main/streams/streams.c b/main/streams/streams.c
index 7ad2483..e440049 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;
|