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

From: Date: Fri, 22 Dec 2017 23:18:42 +0000
Subject: Bug #72102 [Asn->Csd]: Segfault when using func_get_args as error handler
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213251@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:         nikic@php.net
 Reported by:        nikic@php.net
 Summary:            Segfault when using func_get_args as error handler
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            Scripting Engine problem
 PHP Version:        7.0.6RC1
 Assigned To:        nikic
 Block user comment: N
 Private report:     N

 New Comment:

Fixed in 7.1 and 7.0 is out of active support, so closing this.


Previous Comments:
------------------------------------------------------------------------
[2016-07-31 09:23:26] cmb@php.net

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.

------------------------------------------------------------------------
[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


Thread (5 messages)

« previous php.bugs (#213251) next »