|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74089 SoapClient doesn't throw exceptions
Submitted: 2017-02-13 01:54 UTC Modified: 2017-02-13 03:19 UTC
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: luisfcandido at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 7.1.1 OS: Windows 7
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:
From: luisfcandido at gmail dot com
New email:
PHP Version: OS:


 [2017-02-13 01:54 UTC] luisfcandido at gmail dot com
When calling a wsdl function, with invalid/missing parameters, SoapClient triggers  a fatal error, and kills the script, instead of throwing a exception.

Test script:
	echo "start " . phpversion() . "</br>";
		$a = new SoapClient($url, array("exceptions" => true));
	catch(SoapFault $e)
		echo "soapFault {$e->getMessage()}</br>";
		$a->runReport(["userID" => $user, "password" =>  $pass]);
	catch(soapFault $e)
		echo "soapFault: {$e->getMessage()}</br>";
	echo "end\n";

Expected result:
start 7.1.1
soapFault: SOAP-ERROR: Encoding: object has no 'reportRequest' property

Actual result:
PHP Fatal error:  SOAP-ERROR: Encoding: object has no 'reportRequest' property


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Mar 30 13:01:25 2020 UTC