Bug #60780 [Asn->Opn]: Fatal Error instead of Exception if function does not exist
| From: | kalle@php.net | Date: | Tue, 24 Oct 2017 07:58:32 +0000 |
| Subject: | Bug #60780 [Asn->Opn]: Fatal Error instead of Exception if function does not exist | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-212196@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60780&edit=1
ID: 60780
Updated by: kalle@php.net
Reported by: ch at lathspell dot de
Summary: Fatal Error instead of Exception if function does
not exist
-Status: Assigned
+Status: Open
Type: Bug
Package: SOAP related
Operating System: Debian 6.0
PHP Version: 5.3.9
-Assigned To: dmitry
+Assigned To:
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2012-01-17 15:52:13] ch at lathspell dot de
Description:
------------
If a function does not exist I get a Fatal Error:
"PHP Fatal error: Function 'createUser2' doesn't exist in ..."
This is suboptimal as I cannot handle this with neither try/catch nor a custom error handler.
Test script:
---------------
<?php
$client = new SoapClient(...any PHP SOAP server...);
$client->doesNotExist();
...
<?php
$server = new SoapSever(...);
$server->handle();
Expected result:
----------------
handle() should either raise an Exception or at least a normal PHP_ERROR that's catchable using
a custom error handler.
Actual result:
--------------
PHP dies and Apache terminates the SOAP connection without returning a proper SOAP Fault.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60780&edit=1