[RFC][VOTE] Enable error_handler callback parameters to be passed by reference

php.internals

Unnamed Person

11 years ago
Hi all! we'd like to initiate a vote on Allow error_handler callback parameters to be passed by reference: https://wiki.php.net/rfc/error_handler_callback_parameters_passed_by_reference We are proposing to enable error_handler callback parameters to be passed by reference to be able to append additional data to error messages. The implementation includes the first four callback parameters to be passed by reference. Thanks to reeze for providing the patch and the tests. The vote has three choices: - Allow $errstr parameter to be passed by reference - Allow $errno, $errstr, $errfile, $fileno parameter to be passed by reference - No, Allow none of the parameter be a reference parameter and closes in 2 weeks from now. Thanks, Thomas

Pascal MARTIN

11 years ago
Le 13/02/2015 21:51, Thomas Bley a écrit :
> > we'd like to initiate a vote on Allow error_handler callback parameters to be passed by reference: > https://wiki.php.net/rfc/error_handler_callback_parameters_passed_by_reference >
Hi, We've discussed this RFC with a few other people at AFUP, and we would be -1. Our reasons are probably the same as expressed here by others: updating the (more or less "internal") error-messages doesn't feel right. And one can already use his own error handler to log what pieces of data are needed. Still, thanks for your work!
-- Pascal MARTIN, AFUP - French UG http://php-internals.afup.org/

Unnamed Person

11 years ago
Hi all, the rfc was declined: - Allow $errstr parameter to be passed by reference: 3 - Allow $errno, $errstr, $errfile, $fileno parameter to be passed by reference: 1 - No, Allow none of the parameter be a reference parameter: 16 Regards Thomas Thomas Bley wrote on 13.02.2015 21:51: