Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8994 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28082 invoked by uid 1010); 8 Apr 2004 11:08:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 28026 invoked from network); 8 Apr 2004 11:08:16 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 8 Apr 2004 11:08:16 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.10/8.12.10) with ESMTP id i38B8E2n012509; Thu, 8 Apr 2004 13:08:14 +0200 Date: Thu, 8 Apr 2004 13:07:38 +0200 (CEST) X-X-Sender: derick@localhost To: Ferdinand Beyer cc: internals@lists.php.net In-Reply-To: <40754E20.1547.20CA6A@localhost> Message-ID: References: <20040408101703.53487.qmail@pb1.pair.com> <40754E20.1547.20CA6A@localhost> 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, Ferdinand Beyer wrote: > On 8 Apr 2004 at 12:45, Derick Rethans wrote: > > > > 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 > > It would be a nice feature to let the user decide whether to throw > exceptions when errors are triggered: NO! Derick