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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php