Re: [RFC] Enable error_handler callback parameters to be passed by reference
| From: | Thomas Bley | Date: | Wed, 28 Jan 2015 17:59:06 +0000 |
| Subject: | Re: [RFC] Enable error_handler callback parameters to be passed by reference | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81319@lists.php.net to get a copy of this message | ||
>> Error handlers are global anyway, so this is useless (or dangerous) for
>> libraries.
I'm not sure if there is a library that parses php errors and is not able to handle prefixes or
suffixes.
I'm using a similar workaround for many years now in code bases with 500k+ lines of code and it
was never useless or dangerous.
Regards
Thomas
Thomas Bley wrote on 28.01.2015 18:50:
>> Error handlers are global anyway, so this is useless (or dangerous) for
>> libraries.
>
> Yes that's true, maybe set_error_handler can be changed so it behaves like
> register_shutdown_function or spl_autoload_register when multiple callbacks are
> registered?
>
> Regards
> Thomas
>
>
> Andrea Faulds wrote on 28.01.2015 18:38:
>
>> Hi Thomas,
>>
>>> On 28 Jan 2015, at 17:36, Thomas Bley <mails@thomasbley.de> wrote:
>>>
>>> the idea behind the rfc is not to change error messages, it's only to append
>>> useful information to them.
>>
>> That’s still changing the message.
>>
>> Error handlers are global anyway, so this is useless (or dangerous) for
>> libraries.
>>
>> I don’t get it.
>>
>> --
>> Andrea Faulds
>> http://ajf.me/
>>
>>
>>
>>
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>