Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6607 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32950 invoked by uid 1010); 19 Dec 2003 16:06:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32916 invoked by uid 1007); 19 Dec 2003 16:06:42 -0000 Message-ID: <20031219160642.32915.qmail@pb1.pair.com> To: internals@lists.php.net Date: Fri, 19 Dec 2003 18:06:40 +0200 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> Lines: 19 User-Agent: KNode/0.7.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Posted-By: 212.47.207.38 Subject: Re: [PHP-DEV] error_handler From: lenar@city.ee (Lenar =?ISO-8859-1?Q?L=F5hmus?=) 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). Both of these proposals are equally confusing. Lenar