|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70726 SoapClient fails with some validated WSDL containing comments
Submitted: 2015-10-16 09:51 UTC Modified: 2021-04-04 04:22 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: marco dot marsala at live dot it Assigned: cmb (profile)
Status: No Feedback Package: SOAP related
PHP Version: 5.6.14 OS: CentOS 6.7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: marco dot marsala at live dot it
New email:
PHP Version: OS:


 [2015-10-16 09:51 UTC] marco dot marsala at live dot it
The SoapClient in WSDL mode fails with well-formed and validated WSDL containing comments.

I'm experiencing this problem in PHP 5.6.14. The same code, with the same WSDL, works perfectly in PHP 5.3.3 on the same machine.

Test script:
try {
  $client = new SoapClient('');
} catch(Exception $e) {

Expected result:
No exceptions are thrown.

Actual result:
Exception is thrown on PHP 5.6.14
No exceptions are thrown on PHP 5.3.3 on the same machine.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-10-16 09:58 UTC] marco dot marsala at live dot it
I made some tests with other versions of PHP:

5.4.45: no exceptions are trown (expected result)
5.5.30: no exceptions are trown (expected result)

So the problem was INTRODUCED in the 5.6.x branch.
 [2021-03-23 17:02 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-03-23 17:02 UTC]
I cannot reproduce this with PHP-7.4, but the linked WSDL
apparently has no comments.  Anyhow, do you still experience this
problem with any of the actively supported PHP versions[1]?

[1] <>
 [2021-04-04 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun May 09 20:01:23 2021 UTC