|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60780 Fatal Error instead of Exception if function does not exist
Submitted: 2012-01-17 15:52 UTC Modified: 2017-10-24 07:58 UTC
Avg. Score:4.5 ± 0.8
Reproduced:5 of 5 (100.0%)
Same Version:1 (20.0%)
Same OS:2 (40.0%)
From: ch at lathspell dot de Assigned:
Status: Open Package: SOAP related
PHP Version: 5.3.9 OS: Debian 6.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ch at lathspell dot de
New email:
PHP Version: OS:


 [2012-01-17 15:52 UTC] ch at lathspell dot de
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:
$client = new SoapClient(...any PHP SOAP server...);


$server = new SoapSever(...);

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-22 19:42 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: dmitry
 [2017-10-24 07:58 UTC]
-Status: Assigned +Status: Open -Assigned To: dmitry +Assigned To:
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 06:01:29 2024 UTC