Re: Traits and Properties
| From: | Stefan Marr | Date: | Sun, 09 Jan 2011 21:14:05 +0000 |
| Subject: | Re: Traits and Properties | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51253@lists.php.net to get a copy of this message | ||
Hi:
On 09 Jan 2011, at 17:23, Stefan Marr wrote:
>> This is the same with interfaces. What does class_exists('some_trait')
>> do? - I assume that returns true too.
> It does return false for interfaces, that should be consistent and return false for traits,
> too.
Ok, that is fixed and I added a trait_exists() to match the other functions.
Will add a note to the RFC.
Best regards
Stefan
--
Stefan Marr
Software Languages Lab
Vrije Universiteit Brussel
Pleinlaan 2 / B-1050 Brussels / Belgium
http://soft.vub.ac.be/~smarr
Phone: +32 2 629 2974
Fax: +32 2 629 3525