From: gareth at wsys dot co dot uk Operating system: Windows, Linux PHP version: 5.0.5 PHP Bug Type: SOAP related Bug description: If you get a communication problem when loading the WSDL, it fatal's
Description: ------------ When using the SOAP Client, it normally throws a catchable SoapFault exception. This helps to elegantly fail if there is a problem with a Web Service. However, if the problem occurs when loading the WSDL, it throws a PHP Fatal Error, which cannot be caught. This means that if you want to use a web service in a web application, you cannot handle the error (e.g. there is network congestion, or the server hosting the web service goes down). Is this intentional, I am not sure. If it is intentional (and I hope not given the fact that you are requesting information from a completely different server, not under your control), any chance this can be changed to throw either a SoapFault Exception, or just something that can be caught? Reproduce code: --------------- try { $sc = new SoapClient("some.wsdl", array()); } catch (Exception $e) { echo 'Error Caught'; } Expected result: ---------------- Error Caught Actual result: -------------- Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from '{URL Removed}' -- Edit bug report at http://bugs.php.net/?id=34657&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34657&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34657&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34657&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34657&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34657&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34657&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34657&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34657&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34657&r=support Expected behavior: http://bugs.php.net/fix.php?id=34657&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34657&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34657&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34657&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34657&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34657&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34657&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34657&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34657&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34657&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34657&r=mysqlcfg