|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72102 Segfault when using func_get_args as error handler
Submitted: 2016-04-25 16:45 UTC Modified: 2017-12-22 23:18 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: Assigned: nikic (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 7.0.6RC1 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2016-04-25 16:45 UTC]
function test($a) {
    echo $undef;

Don't ask me what the expected result should be, but it shouldn't crash...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-05-17 05:50 UTC]
-Assigned To: +Assigned To: nikic
 [2016-05-17 05:50 UTC]
Just assigning to you so that this is not forgotten when the solution is merged.
 [2016-07-30 19:59 UTC]
Wasn't this fixed in 7.1 with the restriction to calls to func_get_args in a dynamic context?
 [2016-07-31 09:23 UTC]
For reference: <>. 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.
 [2017-12-22 23:18 UTC]
-Status: Assigned +Status: Closed
 [2017-12-22 23:18 UTC]
Fixed in 7.1 and 7.0 is out of active support, so closing this.
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Tue Oct 23 07:01:25 2018 UTC