php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #53042 SoapServer->handle() should optionally throw Exception
Submitted: 2010-10-11 13:31 UTC Modified: -
Votes:10
Avg. Score:4.2 ± 1.2
Reproduced:8 of 9 (88.9%)
Same Version:3 (37.5%)
Same OS:6 (75.0%)
From: ch@php.net Assigned:
Status: Open Package: SOAP related
PHP Version: 5.3.3 OS: any
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
38 + 42 = ?
Subscribe to this entry?

 
 [2010-10-11 13:31 UTC] ch@php.net
Description:
------------
When using SoapServer->handle() an exception that is thrown somewhere in the
handled object is immediately converted to a SoapFault and printed on stdout.
There is no way to catch that exception and e.g. print a warning with its stack trace to the server logfile.

It would be nice if e.g. SoapServer::__construct() would get an additional option that tells handle to just pass Exceptions. It would then be up to the
programmer to catch and handle them. Of course, for that to work there would have to be a new API function that can output the exception with the correct SOAP headers as currently soap_server_fault_ex() from soap.c does.


Test script:
---------------
-

Expected result:
----------------
-

Actual result:
--------------
-

Patches

Pull Requests

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 13 04:01:27 2025 UTC