php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53485 If you get a communication problem when loading the WSDL, it fatal's
Submitted: 2010-12-06 14:53 UTC Modified: 2010-12-07 17:08 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:2 (66.7%)
From: hlegius at gmail dot com Assigned:
Status: Wont fix Package: SOAP related
PHP Version: 5.2.14 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-12-06 14:53 UTC] hlegius at gmail dot com
Description:
------------
Hello guys !
I got the same problem described in http://bugs.php.net/bug.php?id=34657 . When SoapClient() calls a unknown URL, a fatal error is thrown.

Test script:
---------------
<?php

try {
  $soap = new SoapClient("http://cabeca.com.br/foo?WSDL");
  var_dump($soap->__getFunctions());
  
} catch (SoapFault $spf) {
  var_dump($spf);
} catch (Exception $e) {
  var_dump($e);
}

var_dump('foo');
?>

Expected result:
----------------
SoapFault Instance class
foo


Actual result:
--------------
PHP Warning:  SoapClient::SoapClient(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/hlegius/soapfail.php on line 4

Warning: SoapClient::SoapClient(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/hlegius/soapfail.php on line 4
PHP Warning:  SoapClient::SoapClient(http://cabeca.com/foo?WSDL): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/hlegius/soapfail.php on line 4

Warning: SoapClient::SoapClient(http://cabeca.com/foo?WSDL): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/hlegius/soapfail.php on line 4
PHP Warning:  SoapClient::SoapClient(): I/O warning : failed to load external entity "http://cabeca.com/foo?WSDL" in /home/hlegius/soapfail.php on line 4

Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://cabeca.com/foo?WSDL" in /home/hlegius/soapfail.php on line 4
PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://cabeca.com/foo?WSDL' : failed to load external entity "http://cabeca.com/foo?WSDL"
 in /home/hlegius/soapfail.php on line 4

Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://cabeca.com/foo?WSDL' : failed to load external entity "http://cabeca.com/foo?WSDL"
 in /home/hlegius/soapfail.php on line 4


I've disabled xdebug before tests...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-07 17:08 UTC] kalle@php.net
-Status: Open +Status: Wont fix
 [2010-12-07 17:08 UTC] kalle@php.net
This was changed in the 5.3 branch, as 5.2 is nearing end of life and this isn't a security issue then I'm marking this as a "Wont fix"
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC