From 9d0a1e7664362c1e4bc4153543cc8273b4f7ee55 Mon Sep 17 00:00:00 2001 From: Dave Barr Date: Thu, 15 Jul 2004 23:00:52 +0000 Subject: [PATCH] - Fix #29195 and #29196. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@163418 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/soap/functions/is-soap-fault.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); } ?> ]]>