Bug #60780 [Opn->Asn]: Fatal Error instead of Exception if function does not exist
| From: | rasmus@php.net | Date: | Sun, 22 Jan 2012 19:42:35 +0000 |
| Subject: | Bug #60780 [Opn->Asn]: Fatal Error instead of Exception if function does not exist | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-166696@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: rasmus@php.net
Reported by: ch at lathspell dot de
Summary: Fatal Error instead of Exception if function does
not exist
-Status: Open
+Status: Assigned
Type: Bug
Package: SOAP related
Operating System: Debian 6.0
PHP Version: 5.3.9
-Assigned To:
+Assigned To: dmitry
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