note 104046 deleted from class.soapclient by googleguy

From: Date: Tue, 22 Oct 2013 06:42:42 +0000
Subject: note 104046 deleted from class.soapclient by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-196606@lists.php.net to get a copy of this message
Note Submitter: tlk ---- Make sure to prefix constructor calls with @ and catch SoapFault exceptions, otherwise you risk having the php interpreter exit/die on simple network issues. Robust sample code by Rasmus from http://bugs.php.net/bug.php?id=47584 <?php try { $x = @new SoapClient("non-existent.wsdl",array("exceptions" => 1)); } catch (SoapFault $E) { echo $E->faultstring; } echo "ok\n"; ?>

« previous php.notes (#196606) next »