From: xfra35 at gmail dot com Operating system: Any PHP version: 5.5.4 Package: SOAP related Bug Type: Feature/Change Request Bug description:Downgrade network error in SoapClient to E_WARNING
Description: ------------ Could you please downgrade the error raised by the SoapClient constructor when the provided wsdl file cannot be found from E_ERROR to E_WARNING? A network error is not fatal. This issue has been discussed many times but was mixed with other issues (like xdebug interference..) and at the end nothing was done. Cf. https://bugs.php.net/bug.php?id=47584#1283456233: > [2010-09-02 19:37 UTC] ras...@php.net > Right, so this is not a PHP bug. Perhaps a feature request to downgrade that > particular error to a Warning instead of a catchable fatal, but that is all I see. Test script: --------------- $client=@new \SoapClient('garbage',array('exceptions'=>FALSE)); echo 'OK'; Expected result: ---------------- We should see "OK", Actual result: -------------- If we use register_shutdown_function to display the contents of error_get_last(), we get: Array ( [type] => 1 [message] => SOAP-ERROR: Parsing WSDL: Couldn't load from 'garbage' : failed to load external entity "garbage" ) -- Edit bug report at https://bugs.php.net/bug.php?id=65779&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65779&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65779&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65779&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65779&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65779&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65779&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65779&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65779&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65779&r=support Expected behavior: https://bugs.php.net/fix.php?id=65779&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65779&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65779&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65779&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65779&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65779&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65779&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65779&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65779&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65779&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65779&r=mysqlcfg