Bug #53485 [NEW]: If you get a communication problem when loading the WSDL, it fatal's
| From: | hlegius at gmail dot com | Date: | Mon, 06 Dec 2010 13:53:50 +0000 |
| Subject: | Bug #53485 [NEW]: If you get a communication problem when loading the WSDL, it fatal's | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-156794@lists.php.net to get a copy of this message | ||
From:
Operating system: Linux
PHP version: 5.2.14
Package: SOAP related
Bug Type: Bug
Bug description:If you get a communication problem when loading the WSDL, it fatal's
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 bug report at http://bugs.php.net/bug.php?id=53485&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53485&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53485&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53485&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53485&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53485&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53485&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53485&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53485&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53485&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53485&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53485&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53485&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53485&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53485&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53485&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53485&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53485&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53485&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53485&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53485&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53485&r=mysqlcfg