From: gt-dev at gthomas dot homelinux dot org Operating system: all PHP version: 5.2CVS-2009-04-08 (snap) PHP Bug Type: SOAP related Bug description: PHPClient can't decompress response (transposed uncompress methods?)
Description: ------------ I created a SOAP server, the client uses PHP as a client. If I compress the output, the client says: "Can't uncompress compressed response" Server-side: "gzip" content-encoding uses zlib with the gzip wrap (header, crc and length) and -zlib.MAX_WBITS parameter; "deflate" uses zlib without the wrap with zlib.MAX_WBITS parameter. Client-side: soap.c line 1509 says "gzip" content-encoding results use of "gzinflate" "deflate" results "gzuncompress" use. Am I wrong, but I think deflate's pair is inflate, so "gzip" content-encoding should result the use of "gzuncompress", and "deflate" to "gzinflate", corresponding. Expected result: ---------------- The parse of the uncompressed SOAP result. Actual result: -------------- SoapFault exception: [HTTP] Can't uncompress compressed response in /var/www/tarifa/kgfb_tarifa/tarifa_kgfb_kobe.php:47 Stack trace: #0 [internal function]: SoapClient->__doRequest('__call('db_web__login', Array) #2 /var/www/tarifa/kgfb_tarifa/tarifa_kgfb_kobe.php(47): SoapClient->db_web__login(Array) #3 /var/www/tarifa/tarifa_kgfb.php(4101): kobe_tarifa('550101', '681653', '15', 0.734246575342, '2010-01-01 00:0...') #4 {main}REQUEST: b1000745XyF27mI9 RESPONSE: RESPONSE HEADERS: HTTP/1.1 200 OK Date: Wed, 08 Apr 2009 09:15:08 GMT Vary: accept-encoding Content-Encoding: gzip Content-Type: text/xml;charset=utf-8 Server: Twisted/8.1.0 TwistedWeb/[twisted.web2, version 0.2.0+r22791] Transfer-Encoding: chunked Connection: close -- Edit bug report at http://bugs.php.net/?id=47925&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47925&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47925&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47925&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47925&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47925&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47925&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47925&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47925&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47925&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47925&r=support Expected behavior: http://bugs.php.net/fix.php?id=47925&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47925&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47925&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47925&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47925&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47925&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47925&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47925&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47925&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47925&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47925&r=mysqlcfg