note 109976 deleted from class.soapclient by aharvey

From: Date: Fri, 07 Sep 2012 13:33:57 +0000
Subject: note 109976 deleted from class.soapclient by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190570@lists.php.net to get a copy of this message
Note Submitter: fcojavierdomenech at NOSPAM dot gmail dot com ---- As tlk says: "Make sure to prefix constructor calls with @ and catch SoapFault exceptions, otherwise you risk having the php interpreter exit/die on simple network issues. <?php try { $x = @new SoapClient("non-existent.wsdl",array("exceptions" => 1)); } catch (SoapFault $E) { echo $E->faultstring; } echo "ok\n"; ?>" if it still isn't enough, try surrounding the SoapClient call with xdebug_disable(); and xdebug_enable();

« previous php.notes (#190570) next »