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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: enumag at gmail dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Sun Jul 12 23:01:26 2020 UTC