diff --git a/reference/soap/functions/is-soap-fault.xml b/reference/soap/functions/is-soap-fault.xml index 96e51f121a..07f8e2165d 100644 --- a/reference/soap/functions/is-soap-fault.xml +++ b/reference/soap/functions/is-soap-fault.xml @@ -1,5 +1,5 @@ - + is_soap_fault @@ -34,10 +34,10 @@ 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 @@ if (is_soap_fault($result)) { 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); } ?> ]]>