dave            Thu Jul 15 19:00:53 2004 EDT

  Modified files:              
    /phpdoc/en/reference/soap/functions is-soap-fault.xml 
  Log:
  - Fix #29195 and #29196.
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/soap/functions/is-soap-fault.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/soap/functions/is-soap-fault.xml
diff -u phpdoc/en/reference/soap/functions/is-soap-fault.xml:1.4 
phpdoc/en/reference/soap/functions/is-soap-fault.xml:1.5
--- phpdoc/en/reference/soap/functions/is-soap-fault.xml:1.4    Fri Feb 27 11:36:36 
2004
+++ phpdoc/en/reference/soap/functions/is-soap-fault.xml        Thu Jul 15 19:00:52 
2004
@@ -1,5 +1,5 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
   <refentry id="function.is-soap-fault">
    <refnamediv>
     <refname>is_soap_fault</refname>
@@ -34,10 +34,10 @@
       <programlisting role="php">
 <![CDATA[
 <?php
-$client = SoapClient("some.wsdl", array('exceptions' => 0));
+$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->faulstring})", E_ERROR);
+    trigger_error("SOAP Fault: (faultcode: {$result->faultcode}, faultstring: 
{$result->faultstring})", E_ERROR);
 }
 ?>
 ]]>
@@ -49,10 +49,10 @@
 <![CDATA[
 <?php
 try {
-    $client = SoapClient("some.wsdl");
+    $client = new SoapClient("some.wsdl");
     $result = $client->SomeFunction(...);
 } catch (SoapFault $fault) {
-    trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: 
{$fault->faulstring})", E_ERROR);
+    trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: 
{$fault->faultstring})", E_ERROR);
 }
 ?>
 ]]>

Reply via email to