For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > December 2006 > cvs: phpdoc /en/reference/soap/functions is-soap-fault.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

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

2006-12-28, 10:03 pm

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/phpdo...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);
}
?>
]]>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com