mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix #39798: trigger_error can only by used with E_USER_*
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@225982 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d1c4fd8550
commit
5837c98d90
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<refentry id="function.is-soap-fault">
|
||||
<refnamediv>
|
||||
<refname>is_soap_fault</refname>
|
||||
|
@ -61,7 +61,7 @@
|
|||
$client = new SoapClient("some.wsdl", array('exceptions' => 0));
|
||||
$result = $client->SomeFunction();
|
||||
if (is_soap_fault($result)) {
|
||||
trigger_error("SOAP Fault: (faultcode: {$result->faultcode}, faultstring: {$result->faultstring})", E_ERROR);
|
||||
trigger_error("SOAP Fault: (faultcode: {$result->faultcode}, faultstring: {$result->faultstring})", E_USER_ERROR);
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
|
@ -76,7 +76,7 @@ try {
|
|||
$client = new SoapClient("some.wsdl");
|
||||
$result = $client->SomeFunction(/* ... */);
|
||||
} catch (SoapFault $fault) {
|
||||
trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_ERROR);
|
||||
trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue