php.net |  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
Description:
------------
Not that class contants can have visibility, I think that ReflectionClass::getConstants() and ReflectionClass::getReflectionConstants() should have a filter similar to getMethods and getProperties().


Patches

Pull Requests

Pull requests:

History

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

Patch Name: Add $filter parameter for ReflectionClass::(getConstants|getReflectionConstants)
On GitHub:  https://github.com/php/php-src/pull/5649
Patch:      https://github.com/php/php-src/pull/5649.patch
 [2020-06-07 14:04 UTC] carusogabriel@php.net
-Status: Assigned +Status: Closed -PHP Version: 7.4.6 +PHP Version: Next Major Version
 [2020-06-07 14:04 UTC] carusogabriel@php.net
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: Sat Dec 21 12:01:31 2024 UTC