#47021 [Csd->Tbd]: SoapClient stumbles over WSDL delivered with "Transfer-Encoding: chunked"

From: Date: Thu, 16 Apr 2009 10:56:27 +0000
Subject: #47021 [Csd->Tbd]: SoapClient stumbles over WSDL delivered with "Transfer-Encoding: chunked"
References: 1  Groups: php.bugs php.doc.bugs 
Request: Send a blank email to php-bugs+get-135875@lists.php.net to get a copy of this message
ID: 47021 Updated by: bjori@php.net Reported By: daniel dot gorski at develnet dot org -Status: Closed +Status: To be documented Bug Type: SOAP related Operating System: Linux PHP Version: 5.3CVS-2009-01-06 (CVS) Assigned To: dmitry New Comment: This was fixed by introducing an 'dechunk' stream filter, see http://news.php.net/php.cvs/57042 Previous Comments: ------------------------------------------------------------------------ [2009-04-16 10:34:48] dmitry@php.net This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2009-01-26 10:54:53] giovanni at giacobbi dot net Please see related discussion: http://marc.info/?t=123291993300002&r=1&w=2 See also bug report #43069 which actually caused this bug. ------------------------------------------------------------------------ [2009-01-22 15:35:02] ml at x-net dot be I can confirm this bug. I tried avoiding the chunking in Apache by using mod_deflate, but the PHP SOAP client probably doesn't send an Accept-Encoding header with gzip in it. ------------------------------------------------------------------------ [2009-01-06 16:28:52] daniel dot gorski at develnet dot org Description: ------------ The \SoapClient (and probably the \SoapServer) stumble over WSDL files that are delivered via HTTP in chunks, carrying the HTTP response header "Transfer-Encoding: chunked". Reproduce code: --------------- $sc = \SoapClient('http://any.wsdl/that/is/delivered/in/chunks'); Expected result: ---------------- No error, intantiation and initialization of the \SoapClient object. Actual result: -------------- Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from [URL]: Start tag expected, '<' not found in [FILE] ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47021&edit=1

« previous php.bugs (#135875) next »