Bug #53023 [Opn]: Fatal error gets displayed but is not fatal
| From: | felipe@php.net | Date: | Fri, 08 Oct 2010 23:21:41 +0000 |
| Subject: | Bug #53023 [Opn]: Fatal error gets displayed but is not fatal | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-155043@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53023&edit=1
ID: 53023
Updated by: felipe@php.net
Reported by: daniel dot seif at castex dot de
Summary: Fatal error gets displayed but is not fatal
Status: Open
Type: Bug
Package: SOAP related
Operating System: *
PHP Version: 5.3.3
Block user comment: N
New Comment:
I can't reproduce this.
Previous Comments:
------------------------------------------------------------------------
[2010-10-08 10:50:02] daniel dot seif at castex dot de
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 this bug report at http://bugs.php.net/bug.php?id=53023&edit=1