Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39243 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76486 invoked from network); 23 Jul 2008 18:07:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2008 18:07:17 -0000 Authentication-Results: pb1.pair.com header.from=nfontes@cynigram.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nfontes@cynigram.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain cynigram.com designates 209.85.132.243 as permitted sender) X-PHP-List-Original-Sender: nfontes@cynigram.com X-Host-Fingerprint: 209.85.132.243 an-out-0708.google.com Received: from [209.85.132.243] ([209.85.132.243:11921] helo=an-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/3E-12534-25377884 for ; Wed, 23 Jul 2008 14:07:15 -0400 Received: by an-out-0708.google.com with SMTP id c14so508632anc.1 for ; Wed, 23 Jul 2008 11:07:12 -0700 (PDT) Received: by 10.100.57.6 with SMTP id f6mr49801ana.155.1216836431305; Wed, 23 Jul 2008 11:07:11 -0700 (PDT) Received: from ?10.224.251.3? ( [85.183.90.3]) by mx.google.com with ESMTPS id h35sm16951383wxd.31.2008.07.23.11.07.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 23 Jul 2008 11:07:10 -0700 (PDT) Message-ID: <4887734A.40908@bitextender.com> Date: Wed, 23 Jul 2008 20:07:06 +0200 Organization: Bitextender GmbH User-Agent: Mozilla-Thunderbird 2.0.0.14 (X11/20080509) MIME-Version: 1.0 To: =?UTF-8?B?RGF2aWQgWsO8bGtl?= CC: Lukas Kahwe Smith , PHP Developers Mailing List References: <4587ACEA.30103@pooteeweet.org> <45A24C7F.5020607@gmail.com> In-Reply-To: X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: Noah Fontes Subject: Re: [PHP-DEV] ext/soap ctor errors From: noah.fontes@bitextender.com (Noah Fontes) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Zülke wrote: > 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 >>> +1 for this. Regards, Noah - -- Noah Fontes Bitextender http://www.bitextender.com/ Phone: +1 919 349 9826 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIh3NKhitK+HuUQJQRAmywAKCH7w7pq7r9dV+UHF81Ky7/9XzYOgCgjAGB DopF3tsQm31fzXxDhWYU2S8= =QPf5 -----END PGP SIGNATURE-----