I think you mean:
function myErrorHandler( int $errno , string $errstr [, string $errfile [, int 
$errline [, array $errcontext [, string &$extra_errstr ]]]] )

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.

Regards
Thomas


Yasuo Ohgaki wrote on 29.01.2015 03:55:

> 
> Hi Thomas,
> 
> 
> On Thu, Jan 29, 2015 at 11:51 AM, Yasuo Ohgaki <yohg...@ohgaki.net 
> <mailto:yohg...@ohgaki.net> > wrote:
>> 
>> If there are many people concerns to change error message, how about
>> 
>> append user error message to original error message when it's changed? 
> 
> 
> How about this signature.
> 
> 
> function myErrorHandler($errno, $errstr, $errfile, $errline, &$extra_errstr)
> 
> 
> Regards,
> 
> 
> --
> Yasuo Ohgaki
> yohg...@ohgaki.net <mailto:yohg...@ohgaki.net> 
> 
>

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to