Bug #48216 [ReO->Fbk]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc

From: Date: Tue, 16 Feb 2021 14:16:50 +0000
Subject: Bug #48216 [ReO->Fbk]: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232197@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=48216&edit=1

 ID:                 48216
 Updated by:         cmb@php.net
 Reported by:        mark at everytruckjob dot com
 Summary:            PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Extra
                     content at the end of the doc
-Status:             Re-Opened
+Status:             Feedback
 Type:               Bug
 Package:            Streams related
 Operating System:   CentOs 5.3
 PHP Version:        *
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

I cannot reproduce this with PHP-7.4.  If anybody still gets this
error with any of the actively supported PHP versions[1], please
provide the URI of a publicly available WDSL which causes that
error.

[1] <https://www.php.net/supported-versions.php>


Previous Comments:
------------------------------------------------------------------------
[2015-08-03 10:20:06] dmitry@php.net

It looks like web server sends HTTP response with proper Context-Length header, but after the
regular context it sends additional HTTP headers. libxml and PHP stream layer don't take into
account the Context-Length header value and read the following HTTP headers into libxml buffer. This
cause the error.

This is not realated to ext/soap, but to PHP stream layer in general.
However, I'm not sure how this may be fixed.

------------------------------------------------------------------------
[2015-08-03 07:37:51] 582870795 at qq dot com

I'm also experiencing the same problem.

my php version is PHP 5.6.8

when I use soapclient like 
$client = new SoapClient('http://61.145.229.29:9003/MWGate/wmgw.asmx?WSDL')


Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc

------------------------------------------------------------------------
[2013-11-17 09:35:05] laruence@php.net

Automatic comment on behalf of dmitry
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b3522ffdcb738a2f27b042008351c67dc7965ba8
Log: Fixed bug #48216 (PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the
doc, when server uses chunked transfer encoding with spaces after chunk size)

------------------------------------------------------------------------
[2012-07-24 23:38:31] rasmus@php.net

Automatic comment on behalf of dmitry
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b3522ffdcb738a2f27b042008351c67dc7965ba8
Log: Fixed bug #48216 (PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the
doc, when server uses chunked transfer encoding with spaces after chunk size)

------------------------------------------------------------------------
[2012-07-23 18:51:49] jbl dot foruns at gmail dot com

Same problem here.
PHP 5.3.10-1ubuntu3.2 with Suhosin-Patch (cli) (built: Jun 13 2012 17:19:58)
Linux srv10 3.2.0-27-generic #43-Ubuntu SMP Fri Jul 6 14:25:57 UTC 2012 x86_64 
x86_64 x86_64 GNU/Linux

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=48216


--
Edit this bug report at https://bugs.php.net/bug.php?id=48216&edit=1


Thread (38 messages)

« previous php.bugs (#232197) next »