cvs: phpdoc /en/reference/soap/functions is-soap-fault.xml

From: Date: Fri, 29 Dec 2006 00:52:17 +0000
Subject: cvs: phpdoc /en/reference/soap/functions is-soap-fault.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969374645@lists.php.net to get a copy of this message
didou Fri Dec 29 00:52:17 2006 UTC Modified files: /phpdoc/en/reference/soap/functions is-soap-fault.xml Log: Fix #39798: trigger_error can only by used with E_USER_* http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/soap/functions/is-soap-fault.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/soap/functions/is-soap-fault.xml diff -u phpdoc/en/reference/soap/functions/is-soap-fault.xml:1.8 phpdoc/en/reference/soap/functions/is-soap-fault.xml:1.9 --- phpdoc/en/reference/soap/functions/is-soap-fault.xml:1.8 Mon Jan 10 00:46:17 2005 +++ phpdoc/en/reference/soap/functions/is-soap-fault.xml Fri Dec 29 00:52:17 2006 @@ -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 @@ $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); } ?> ]]>

« previous php.doc (#969374645) next »