Re: [RFC] Enable error_handler callback parameters to be passed by reference
| From: | Yasuo Ohgaki | Date: | Thu, 29 Jan 2015 08:19:56 +0000 |
| Subject: | Re: [RFC] Enable error_handler callback parameters to be passed by reference | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81360@lists.php.net to get a copy of this message | ||
Hi Thomas,
On Thu, Jan 29, 2015 at 4:55 PM, Thomas Bley <mails@thomasbley.de> wrote:
> I think you mean:
> function myErrorHandler( int $errno , string $errstr [, string $errfile [,
> int $errline [, array $errcontext [, string &$extra_errstr ]]]] )
>
Yes.
>
> We have these empty-call-filled-on-return parameters in
> preg_match(...$match) but I am not sure if it makes things more complicated
> than they should be.
> For me, changing $errstr to &$errstr is the simplest thing to do.
>
I agree.
I would like to have this feature. Better log is better management.
I don't care much about complexity, but simpler is better.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net