Bug #72102 [Asn]: Segfault when using func_get_args as error handler

From: Date: Sun, 31 Jul 2016 09:23:27 +0000
Subject: Bug #72102 [Asn]: Segfault when using func_get_args as error handler
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202753@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72102&edit=1 ID: 72102 Updated by: cmb@php.net Reported by: nikic@php.net Summary: Segfault when using func_get_args as error handler Status: Assigned Type: Bug Package: Scripting Engine problem PHP Version: 7.0.6RC1 Assigned To: nikic Block user comment: N Private report: N New Comment: For reference: <https://3v4l.org/TA4CW>. It seems we still a need a solution for PHP 7.0, or we'd have to fix the docs: | Generates a warning if called from outside of a user-defined | function. Previous Comments: ------------------------------------------------------------------------ [2016-07-30 19:59:49] kalle@php.net Wasn't this fixed in 7.1 with the restriction to calls to func_get_args in a dynamic context? ------------------------------------------------------------------------ [2016-05-17 05:50:41] krakjoe@php.net Just assigning to you so that this is not forgotten when the solution is merged. ------------------------------------------------------------------------ [2016-04-25 16:45:15] nikic@php.net Description: ------------ <?php set_error_handler('func_get_args'); function test($a) { echo $undef; } test(1); Don't ask me what the expected result should be, but it shouldn't crash... ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72102&edit=1

« previous php.bugs (#202753) next »