|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-01-16 21:56 UTC] gordon dot mcvey at ntlworld dot com
[2015-05-13 15:38 UTC] abasso at emporos dot net
[2018-03-23 11:43 UTC] nikic@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: nikic
[2018-03-23 11:43 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 01:00:01 2025 UTC |
Description: ------------ Dealing with the SoapClient in PHP inside a try block produces an unexpected result when a failure to connect occurs. A fatal error will be logged or displayed (depending on error_reporting, display_errors and error logging settings) but the script will continue to execute. Test script: --------------- <?php echo "start\n"; try { $test = new SoapClient ('http://www.example.com/'); } catch (Exception $e) { echo "Caught exception\n"; } echo "end\n"; Expected result: ---------------- Either ====== start Caught exception end Or ====== start PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.example.com/' : Extra content at the end of the document in soapfail.php on line 6 Actual result: -------------- start PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.example.com/' : Extra content at the end of the document in soapfail.php on line 6 Caught exception end