Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39214 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31767 invoked from network); 23 Jul 2008 08:31:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2008 08:31:59 -0000 Authentication-Results: pb1.pair.com header.from=david.zuelke@bitextender.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=david.zuelke@bitextender.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain bitextender.com does not designate 80.237.132.12 as permitted sender) X-PHP-List-Original-Sender: david.zuelke@bitextender.com X-Host-Fingerprint: 80.237.132.12 wp005.webpack.hosteurope.de Received: from [80.237.132.12] ([80.237.132.12:44334] helo=wp005.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/63-12534-D7CE6884 for ; Wed, 23 Jul 2008 04:31:58 -0400 Received: from munich.bitxtender.net ([85.183.90.3] helo=[10.224.251.2]); authenticated by wp005.webpack.hosteurope.de running ExIM using esmtpsa (TLSv1:RC4-SHA:128) id 1KLZlK-0001ez-2k; Wed, 23 Jul 2008 10:31:54 +0200 Cc: Lukas Kahwe Smith , PHP Developers Mailing List Message-ID: To: Knut Urdalen In-Reply-To: <45A24C7F.5020607@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Wed, 23 Jul 2008 10:31:53 +0200 References: <4587ACEA.30103@pooteeweet.org> <45A24C7F.5020607@gmail.com> X-Mailer: Apple Mail (2.926) X-bounce-key: webpack.hosteurope.de;david.zuelke@bitextender.com;1216801918;fa61c60e; Subject: Re: [PHP-DEV] ext/soap ctor errors From: david.zuelke@bitextender.com (=?ISO-8859-1?Q?David_Z=FClke?=) I know this is horribly old, but I just stumbled across the same issue again and realized it has not been tackled yet. Shouldn't we fix that for 5.3? David Am 08.01.2007 um 14:51 schrieb Knut Urdalen: > I agree with Lukas here, currently you have to be proactive against > the location of the WSDL-file. I currently do like this in my > SoapClient's: > > class MySoapClient extends SoapClient { > public function __construct($wsdl ,$options = array()) { > if(is_resource(@fopen($wsdl, 'r'))) { > parent::__construct($wsdl, $options); > } else { > throw new Exception("Parsing WSDL: Couldn't load from '$wsdl'"); > } > } > } > > to be able to catch that problem as an Exception. > > Regards, > Knut Urdalen > > Lukas Kahwe Smith wrote: >> Hi, >> >> why do I get warnings when I have failures in my ext/soap ctor? >> >> try { >> $client = new SoapClient('http://i_dont_exist.com/some.wsdl', >> array('exceptions' => true)); >> } catch (Exception $e) { } >> >> I guess even without the 'exceptions' => true it should always >> return all issues as an exception. I think this was agreed upon for >> constructor errors in PHP5, no? >> >> regards, >> Lukas >> > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >