|  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: -
Avg. Score:4.2 ± 1.2
Reproduced:8 of 9 (88.9%)
Same Version:3 (37.5%)
Same OS:6 (75.0%)
From: Assigned:
Status: Open Package: SOAP related
PHP Version: 5.3.3 OS: any
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2010-10-11 13:31 UTC]
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:


Add a Patch

Pull Requests

Add a Pull Request

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