|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75290 debug info of Closures of internal functions contain garbage argument names
Submitted: 2017-09-29 20:22 UTC Modified: 2017-09-29 20:25 UTC
From: Assigned: ajf (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 7.0.24 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:


 [2017-09-29 20:22 UTC]

Seems to be broken since 7.x, worked in 5.6. Probably the switch from const char* to zend_string* for /internal/ arg names, but not user names, broke it.

Test script:

var_dump((new ReflectionFunction('sin'))->getClosure());

Expected result:
object(Closure)#2 (1) {
  array(1) {
    string(10) "<required>"

Actual result:
object(Closure)#2 (1) {
  array(1) {
    ["$p���x�����������X���@���T���t������|�����T���<���Internal zval's can't be arrays, objects or resources"]=>
    string(10) "<required>"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-09-29 20:25 UTC]
-Assigned To: +Assigned To: ajf
 [2017-09-29 20:40 UTC]
Automatic comment on behalf of
Log: Fix bug #75290
 [2017-09-29 20:40 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Jul 14 10:01:24 2020 UTC