Re: [RFC] Enable error_handler callback parameters to be passed by reference
| From: | Thomas Bley | Date: | Tue, 27 Jan 2015 02:45:21 +0000 |
| Subject: | Re: [RFC] Enable error_handler callback parameters to be passed by reference | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-81193@lists.php.net to get a copy of this message | ||
Here is the rfc:
https://wiki.php.net/rfc/error_handler_callback_parameters_passed_by_reference
Thanks to reeze for coding and putting it on the wiki.
Regards
Thomas
reeze wrote on 23.01.2015 10:59:
> Yeah, seem other want it it too, so I just updated the PR to allow the first four parameters
> been passed by reference.
>
>
> On 23 January 2015 at 16:23, Nicolas Grekas <nicolas.grekas+php@gmail.com
> <mailto:nicolas.grekas+php@gmail.com> > wrote:
>> > function myErrorHandler($errno, &$errstr, $errfile, $errline) {...}
>> >
>>
>> It would be awesome to also pass $errfile and $errline by reference. This
>> would allow mapping "compiled" source to real source code and have
>> meaningful error file+line information.
>> By "compiled", I mean e.g. inlined classes (like the bootstrap.cache.php
>> file in Symfony), or preprocessed sources, etc.
>>
>> Nicolas
>
>