Re: error_handler
| From: | Derick Rethans | Date: | Fri, 19 Dec 2003 15:00:34 +0000 |
| Subject: | Re: error_handler | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6603@lists.php.net to get a copy of this message | ||
On Fri, 19 Dec 2003, Christian Schneider wrote:
> Daniel Convissor wrote:
> > On Fri, Dec 19, 2003 at 03:20:17PM +0100, Derick Rethans wrote:
> >
> >>It is when it's optional and the default is the current behavior.
> >
> > Pardon me. Looks like PHP 3 behavior is still stuck in my brain...
>
> No, you were right. A script using
> set_error_handler("handler", error_reporting());
> will get "Wrong parameter count for set_error_handler()" for PHP4.
>
> So you force people to lock their code to PHP5 if they want to use the
> new semantics. Not good for migration.
This is not called backwards compatibility, but forwards compatibility.
Don't worry about this, as PHP wasnever really forwards compatible
anyway.
Derick