php.net |  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
Votes:6
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ch at lathspell dot de
New email:
PHP Version: OS:

 

 [2012-01-17 15:52 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-22 19:42 UTC] rasmus@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: dmitry
 [2017-10-24 07:58 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: dmitry +Assigned To:
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 02:01:28 2024 UTC