Re: Enable error_handler callback parameters to be passed by reference
| From: | reeze | Date: | Fri, 23 Jan 2015 09:59:09 +0000 |
| Subject: | Re: Enable error_handler callback parameters to be passed by reference | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81037@lists.php.net to get a copy of this message | ||
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>
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
>