Re: error_handler
| From: | Christian Schneider | Date: | Fri, 19 Dec 2003 18:28:24 +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-6620@lists.php.net to get a copy of this message | ||
Zeev Suraski wrote:
argument makes a great deal of sense. As a matter of fact, in practice - you can easily get forward-compatibility. Just supply it in both PHP 4 and 5 - extra arguments are ignored anyway (just provide @ to make sure of that).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); $a / 0; - Chris