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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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: Sun Apr 21 04:01:28 2024 UTC