From 5837c98d90810f4cdda3c98299c05e651988de1e Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Fri, 29 Dec 2006 00:52:17 +0000 Subject: [PATCH] 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 --- reference/soap/functions/is-soap-fault.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/soap/functions/is-soap-fault.xml b/reference/soap/functions/is-soap-fault.xml index e4b6dc8b4b..1d3990b7cf 100644 --- a/reference/soap/functions/is-soap-fault.xml +++ b/reference/soap/functions/is-soap-fault.xml @@ -1,5 +1,5 @@ - + is_soap_fault @@ -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); } ?> ]]>