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