|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #79628 Missing filter argument in ReflectionClass::getConstants()
Submitted: 2020-05-25 09:42 UTC Modified: 2020-06-07 14:04 UTC
From: enumag at gmail dot com Assigned: carusogabriel (profile)
Status: Closed Package: Reflection related
PHP Version: Next Major Version OS:
Private report: No CVE-ID: None
 [2020-05-25 09:42 UTC] enumag at gmail dot com
Not that class contants can have visibility, I think that ReflectionClass::getConstants() and ReflectionClass::getReflectionConstants() should have a filter similar to getMethods and getProperties().


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-05-30 20:52 UTC]
-Package: Class/Object related +Package: Reflection related
 [2020-05-30 22:12 UTC]
-Assigned To: +Assigned To: carusogabriel
 [2020-05-30 22:48 UTC]
The following pull request has been associated:

Patch Name: Add $filter parameter for ReflectionClass::(getConstants|getReflectionConstants)
On GitHub:
 [2020-06-07 14:04 UTC]
-Status: Assigned +Status: Closed -PHP Version: 7.4.6 +PHP Version: Next Major Version
 [2020-06-07 14:04 UTC]
Pull Request merged, and this functionality will be available in PHP 8.0.0.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 10:01:29 2024 UTC