php.net |  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: 2021-04-04 04:22 UTC
Votes:3
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: cmb (profile)
Status: No Feedback 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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: luisfcandido at gmail dot com
New email:
PHP Version: OS:

 

 [2017-02-13 01:54 UTC] luisfcandido at gmail dot com
Description:
------------
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>";
	try
	{
		$a = new SoapClient($url, array("exceptions" => true));
	}
	catch(SoapFault $e)
	{
		echo "soapFault {$e->getMessage()}</br>";
	}
	try
	{
		$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
end

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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-03-23 15:52 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-03-23 15:52 UTC] cmb@php.net
Please provide (a link to) the WSDL.
 [2021-04-04 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC