Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6609 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72323 invoked by uid 1010); 19 Dec 2003 16:30:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 72298 invoked from network); 19 Dec 2003 16:30:41 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 19 Dec 2003 16:30:41 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.10/8.12.10) with ESMTP id hBJGUe6g023376; Fri, 19 Dec 2003 17:30:40 +0100 Date: Fri, 19 Dec 2003 17:30:39 +0100 (CET) X-X-Sender: derick@localhost To: Lenar =?ISO-8859-1?Q?L=F5hmus?= cc: internals@lists.php.net In-Reply-To: <20031219160642.32915.qmail@pb1.pair.com> Message-ID: References: <841D90E489448A4F804E1D1B95768BF7D462F7@lis-exchange3.lmu.ac.uk> <20031219141634.GA27956@panix.com> <20031219142636.GB27956@panix.com> <3FE30E95.5090707@cschneid.com> <20031219151338.GA2278@panix.com> <3FE31B63.6010606@cschneid.com> <20031219160642.32915.qmail@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-15 Content-Transfer-Encoding: QUOTED-PRINTABLE Subject: Re: [PHP-DEV] error_handler From: derick@php.net (Derick Rethans) On Fri, 19 Dec 2003, Lenar [ISO-8859-1] L=F5hmus wrote: > Christian Schneider wrote: > > > Daniel Convissor wrote: > >> Adding an optional argument has the worst of both worlds. In order to > >> take advantage of it, one must lock your code into PHP 5. > > It doesn't work this way in PHP4 anyway. So if you really must use this > feature (I think I would) you can live with being locked to PHP5. Because > when you use this feature you must anyway provide other means for your > scripts to handle this in PHP4, so a version_compare() can't kill you. > > IMHO this parameter is a good thing. I've always wanted it. > +1 from me for optional parameter. > > -10 for anyhting like 'use current error_reporting() setting' or 'just > change the behavior from PHP4 to PHP5' (you need version_compare() again)= =2E > Both of these proposals are equally confusing. Yup, I agree with this. If it should be changed, then an optional parameter is the way. Derick