Re: Proposal for RFC: get_class_constants()

From: Date: Sat, 14 Dec 2013 00:34:45 +0000
Subject: Re: Proposal for RFC: get_class_constants()
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-70631@lists.php.net to get a copy of this message
Hi!

I don’t know much about RFC’s yet - but I would totally vote for that. There are many use cases
for that function, and it wouldn’t break anything BC related too.

Kind regards,
Ingwie
Am 14.12.2013 um 01:28 schrieb Stefan Neufeind <neufeind@php.net>:

> Hi,
> 
> following the howto for RFCs and since this would be my first one, I'd
> like to ask for your thoughts if such an RFC might find approval. If
> yes, I'll be happy to work on it.
> 
> Proposal: Create a function get_class_constants()
> 
> It would be similar to get_class_methods() and get_class_vars().
> 
> Currently the same behavious is only possible by the help of reflection,
> which due to the nature of reflection takes a bit more work/cpu-cycles.
> 
>  $reflection = new \ReflectionClass($class);
>  $constants = $reflection->getConstants();
> 
> 
> Kind regards,
> Stefan
> 
> -- 
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



Thread (14 messages)

« previous php.internals (#70631) next »