Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8991 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50932 invoked by uid 1010); 8 Apr 2004 10:46:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 50780 invoked from network); 8 Apr 2004 10:46:20 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 8 Apr 2004 10:46:20 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.10/8.12.10) with ESMTP id i38AkH2n010954; Thu, 8 Apr 2004 12:46:18 +0200 Date: Thu, 8 Apr 2004 12:45:41 +0200 (CEST) X-X-Sender: derick@localhost To: "Tumurbaatar S." cc: internals@lists.php.net In-Reply-To: <20040408101703.53487.qmail@pb1.pair.com> Message-ID: References: <20040408101703.53487.qmail@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Exceptions and builtin functions in PHP5 From: derick@php.net (Derick Rethans) On Thu, 8 Apr 2004, Tumurbaatar S. wrote: > > news:49201.203.15.102.65.1081404627.squirrel@www.electroteque.org... > > > > If I understand right, PHP5 has an exception > > > > handling mechanism but it is only for "manual" using, i.e. > > > > a programmer can use try/catch but only for own code. > > > > PHP's built-in functions and functions from extensions still > > > > use old "return value" method. Yes? > > > > > > I bloody hope not or what is the point ? > I want to write: > ... > $res = some_builtin_func(); // func raises exception on error > // so I don't need to write additional lines > ... > > So will PHP5 (or future versions) work as in my 2nd example? No regards, Derick