Bug #53485 [Opn->Wfx]: If you get a communication problem when loading the WSDL, it fatal's
| From: | kalle@php.net | Date: | Tue, 07 Dec 2010 16:08:32 +0000 |
| Subject: | Bug #53485 [Opn->Wfx]: If you get a communication problem when loading the WSDL, it fatal's | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-156811@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53485&edit=1
ID: 53485
Updated by: kalle@php.net
Reported by: hlegius at gmail dot com
Summary: If you get a communication problem when loading the
WSDL, it fatal's
-Status: Open
+Status: Wont fix
Type: Bug
Package: SOAP related
Operating System: Linux
PHP Version: 5.2.14
Block user comment: N
Private report: N
New Comment:
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"
Previous Comments:
------------------------------------------------------------------------
[2010-12-06 14:53:49] 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...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53485&edit=1