From:             
Operating system: Irrelevant
PHP version:      5.3SVN-2011-01-18 (SVN)
Package:          Reflection related
Bug Type:         Feature/Change Request
Bug description:New class ReflectionConstant along the lines of 
ReflectionProperty

Description:
------------
Using ReflectionClass->getConstants() returns all constants defined in the
class 

tree as a simple array, irrespective of the defining class.



In comparison to that ReflectionClass->getProperties() returns a collection
of 

ReflectionProperty, allowing you to filter the find the properties for a
single 

class.



So, would it be possible to have a similar mechanism for constants,
replacing the 

simplistic array with a collection of RefelctionConstant.






-- 
Edit bug report at http://bugs.php.net/bug.php?id=53779&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53779&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53779&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53779&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53779&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53779&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53779&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53779&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53779&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53779&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53779&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53779&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53779&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53779&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53779&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53779&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53779&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53779&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53779&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53779&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53779&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53779&r=mysqlcfg

Reply via email to