Re: error_handler

From: Date: Fri, 19 Dec 2003 15:38:11 +0000
Subject: Re: error_handler
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-6605@lists.php.net to get a copy of this message
Daniel Convissor wrote:
I, and lots of people, need to worry about it. I write code that uses
I second that.
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.
In this specific case I can live with an optional argument (even though I think it is pure bloat) because I can't use set_error_handler with PHP4 anyway due to bug #25547. [As soon as this bug gets fixed and I _could_ use it though I'll hate myself for accepting the optional parameter because I'll have to add a "if (version_compare...)" to my code :-}]. - Chris

« previous php.internals (#6605) next »