|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #80071 Expose closure uses through reflection
Submitted: 2020-09-07 07:48 UTC Modified: 2020-10-06 14:56 UTC
From: michael dot vorisek at email dot cz Assigned:
Status: Open Package: Reflection related
PHP Version: 7.4.10 OS: any
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:
From: michael dot vorisek at email dot cz
New email:
PHP Version: OS:


 [2020-09-07 07:48 UTC] michael dot vorisek at email dot cz
Reflection should provide full access to all all function details.

"use" variables should be accessible as well


like function is checked if it is bound, there should be also a check if function uses "use"

Test script:
this is currently not possible, this is a feature request

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-06 14:56 UTC]
-Summary: Function "use" variables must be accessible thru reflection +Summary: Expose closure uses through reflection
 [2020-10-06 14:56 UTC]
Uses are accessible as part of getStaticVariables(), though not distinguished from other static variables.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat May 08 00:01:23 2021 UTC