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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ch@php.net
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC