Req #80071 [Opn->Csd]: Expose closure uses through reflection
| From: | krakjoe@php.net | Date: | Fri, 21 May 2021 13:27:58 +0000 |
| Subject: | Req #80071 [Opn->Csd]: Expose closure uses through reflection | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-233952@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80071&edit=1
ID: 80071
Updated by: krakjoe@php.net
Reported by: michael dot vorisek at email dot cz
Summary: Expose closure uses through reflection
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: Reflection related
Operating System: any
PHP Version: 7.4.10
-Assigned To:
+Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
This will be included in 8.1
Previous Comments:
------------------------------------------------------------------------
[2020-10-06 14:56:15] nikic@php.net
Uses are accessible as part of getStaticVariables(), though not distinguished from other static
variables.
------------------------------------------------------------------------
[2020-09-07 07:48:48] michael dot vorisek at email dot cz
Description:
------------
Reflection should provide full access to all all function details.
"use" variables should be accessible as well
usecase: https://github.com/atk4/core/pull/272/files#diff-08f44384ad9646881f3b84d38f3e8d92R54
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:
--------------
n/a
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80071&edit=1