|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
38 + 16 = ?
Subscribe to this entry?

 [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: Fri Jul 03 15:01:29 2020 UTC