php.net |  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
Votes:1
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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
Description:
------------
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('https://admin.fatturapa.aruba.it/fatturapaupload/uploadws?wsdl');
} catch(Exception $e) {
  var_dump($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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-03-23 17:02 UTC] cmb@php.net
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] <https://www.php.net/supported-versions.php>
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 14:01:29 2024 UTC