Bug #53023 [NEW]: Fatal error gets displayed but is not fatal
| From: | daniel dot seif at castex dot de | Date: | Fri, 08 Oct 2010 08:50:03 +0000 |
| Subject: | Bug #53023 [NEW]: Fatal error gets displayed but is not fatal | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-155019@lists.php.net to get a copy of this message | ||
From:
Operating system: *
PHP version: 5.3.3
Package: SOAP related
Bug Type: Bug
Bug description:Fatal error gets displayed but is not fatal
Description:
------------
When creating a soap client on a non-existing wsdl, an exception gets
thrown and at the same time, a fatal error gets logged, but the script
continues.
Test script:
---------------
try {
$client = new SoapClient('nonexistentfile.wsdl');
} catch (Exception $e) {
echo "catched exception: ", get_class($e), ": ", $e->getMessage();
}
echo "if we had a real Fatal error, we wouldn't execute this line\n";
Expected result:
----------------
catched exception: SoapFault: SOAP-ERROR: Parsing WSDL: Couldn't load from
'nonexistentfile.wsdl' : failed to load external entity
"nonexistentfile.wsdl"
if we had a real Fatal error, we wouldn't execute this line
Actual result:
--------------
PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from
'nonexistentfile.wsdl' : failed to load external entity
"nonexistentfile.wsdl"
in /cab/src/dev/htdocs/test/scratchbook.php on line 102
catched exception: SoapFault: SOAP-ERROR: Parsing WSDL: Couldn't load from
'nonexistentfile.wsdl' : failed to load external entity
"nonexistentfile.wsdl"
if we had a real Fatal error, we wouldn't execute this line
--
Edit bug report at http://bugs.php.net/bug.php?id=53023&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53023&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53023&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53023&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53023&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53023&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53023&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53023&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53023&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53023&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53023&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53023&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53023&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53023&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53023&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53023&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53023&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53023&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53023&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53023&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53023&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53023&r=mysqlcfg