Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27336 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67435 invoked by uid 1010); 8 Jan 2007 15:00:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 67420 invoked from network); 8 Jan 2007 15:00:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2007 15:00:30 -0000 Received: from [127.0.0.1] ([127.0.0.1:22135]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id E1/E4-27400-E8C52A54 for ; Mon, 08 Jan 2007 10:00:30 -0500 Authentication-Results: pb1.pair.com header.from=knut.urdalen@gmail.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=knut.urdalen@gmail.com; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain gmail.com does not designate 82.196.203.118 as permitted sender) X-PHP-List-Original-Sender: knut.urdalen@gmail.com X-Host-Fingerprint: 82.196.203.118 hq-smtp-01.telio.no NetBSD 1.6Z (DF) Received: from [82.196.203.118] ([82.196.203.118:61002] helo=hq-smtp-01.telio.no) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/11-27400-28C42A54 for ; Mon, 08 Jan 2007 08:52:02 -0500 Received: from [192.168.1.63] (unknown [192.168.1.63]) by hq-smtp-01.telio.no (Postfix) with ESMTP id 85F2B1944E3; Mon, 8 Jan 2007 14:51:59 +0100 (CET) Message-ID: <45A24C7F.5020607@gmail.com> Date: Mon, 08 Jan 2007 14:51:59 +0100 User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: Lukas Kahwe Smith CC: PHP Developers Mailing List References: <4587ACEA.30103@pooteeweet.org> In-Reply-To: <4587ACEA.30103@pooteeweet.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] ext/soap ctor errors From: knut.urdalen@gmail.com (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 >