Req #80071 [Com]: Expose closure uses through reflection

From: Date: Fri, 21 May 2021 14:13:12 +0000
Subject: Req #80071 [Com]: Expose closure uses through reflection
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233955@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 Comment by: m at m dot cz Reported by: michael dot vorisek at email dot cz Summary: Expose closure uses through reflection Status: Closed Type: Feature/Change Request Package: Reflection related Operating System: any PHP Version: 7.4.10 Assigned To: krakjoe Block user comment: N Private report: N New Comment: Thanks! For the record, implemented in https://github.com/php/php-src/commit/b227a722859e83fdba230f746477f6322ae33609 Previous Comments: ------------------------------------------------------------------------ [2021-05-21 13:27:58] krakjoe@php.net 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 ------------------------------------------------------------------------ [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

« previous php.bugs (#233955) next »