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
View Add Comment Developer Edit
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
7 + 28 = ?
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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 00:01:31 2024 UTC