Re: error_handler
| From: | Lenar Lõhmus | Date: | Fri, 19 Dec 2003 18:46:31 +0000 |
| Subject: | Re: error_handler | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6622@lists.php.net to get a copy of this message | ||
Christian Schneider wrote:
> Just checked it and no: set_error_handler does _not_ ignore the
> additional parameter, it fails and does _not_ install the handler on
> PHP4. Leave out E_ALL and it works like a charm. Am I missing something
> here?
>
> Script used to test:
> function handler()
> {
> echo "error!\n";
> }
>
> @set_error_handler("handler", E_ALL);
And why @? withou @ you see that there's a problem and can add
version_compare() or rewrite something. At least you see which you don't
when the behavior is just changed.
Lenar