Bug #74089 [Fbk->NoF]: SoapClient doesn't throw exceptions
Edit report at https://bugs.php.net/bug.php?id=74089&edit=1
ID: 74089
Updated by: php-bugs@lists.php.net
Reported by: luisfcandido at gmail dot com
Summary: SoapClient doesn't throw exceptions
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: SOAP related
Operating System: Windows 7
PHP Version: 7.1.1
Assigned To: cmb
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2021-03-23 15:52:54] cmb@php.net
Please provide (a link to) the WSDL.
------------------------------------------------------------------------
[2017-02-13 01:54:58] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74089&edit=1
Thread (3 messages)