Bug #75675 [NEW]: Uncatchable Fatal error

From: Date: Wed, 13 Dec 2017 11:11:03 +0000
Subject: Bug #75675 [NEW]: Uncatchable Fatal error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213079@lists.php.net to get a copy of this message
From: fabien dot papet at gmail dot com Operating system: Windows PHP version: 7.1.12 Package: *General Issues Bug Type: Bug Bug description:Uncatchable Fatal error Description: ------------ It seems like an uncacthable fatal error is thrown with an exception when an url is unreachable Test script: --------------- <?php echo 'start'.PHP_EOL; set_error_handler(function() { echo 'error'.PHP_EOL; }, E_ALL); try { $client = new SoapClient('http://thisaddressdoesnotexists', ['exceptions' => true, 'trace' => 0]); } catch (SoapFault $exception) { var_dump('Exception: '.$exception->getMessage()); } catch (Exception $exception) { var_dump('Exception: '.$exception->getMessage()); } echo 'end'; Expected result: ---------------- start string(143) "Exception: SOAP-ERROR: Parsing WSDL: Couldn't load from 'thisaddressdoesnotexists' : failed to load external entity "thisaddressdoesnotexists" " end Actual result: -------------- start error PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'thisaddressdoesnotexists' : failed to load external entity "thisaddressdoesnotexists" in C:\Users\.....\soaptest.php on line 9 string(143) "Exception: SOAP-ERROR: Parsing WSDL: Couldn't load from 'thisaddressdoesnotexists' : failed to load external entity "thisaddressdoesnotexists" " end -- Edit bug report at https://bugs.php.net/bug.php?id=75675&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75675&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75675&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75675&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75675&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75675&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75675&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75675&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75675&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75675&r=support Expected behavior: https://bugs.php.net/fix.php?id=75675&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75675&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75675&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75675&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75675&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75675&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75675&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75675&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75675&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75675&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75675&r=mysqlcfg

« previous php.bugs (#213079) next »