Re: error_handler

From: Date: Fri, 19 Dec 2003 16:30:39 +0000
Subject: Re: error_handler
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-6609@lists.php.net to get a copy of this message
On Fri, 19 Dec 2003, Lenar [ISO-8859-1] Lõhmus 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). > 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

« previous php.internals (#6609) next »