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

From: Date: Tue, 17 May 2016 05:50:42 +0000
Subject: Bug #72102 [Opn]: Segfault when using func_get_args as error handler
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201144@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:         krakjoe@php.net
 Reported by:        nikic@php.net
 Summary:            Segfault when using func_get_args as error handler
 Status:             Open
 Type:               Bug
 Package:            Scripting Engine problem
 PHP Version:        7.0.6RC1
-Assigned To:        
+Assigned To:        nikic
 Block user comment: N
 Private report:     N

 New Comment:

Just assigning to you so that this is not forgotten when the solution is merged.


Previous Comments:
------------------------------------------------------------------------
[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 (#201144) next »