Not like class_implements(), since that requires processing the returned
array... Rather something that would function similarly to is_subclass_of()
(in that it returns a bool, not an array), but for interfaces.
I seem to run into a need for that on a fairly regular basis. (when I first
found class_implements() this is what I thought it did before reading the
docs)

-matt
On Jun 30, 2011 12:46 AM, "David Muir" <davidkm...@gmail.com> wrote:
> On 30/06/11 11:13, Matt Pelmear wrote:
>> Seems odd to me that is_subclass_of returns true for interfaces... I
never
>> realized that before.
>>
>> Personally I would prefer a separate method to check for interfaces,
since
>> they aren't really classes (at least in my head), but I suppose that
would
>> break BC. (I've always wanted a method for checking if a class implements
an
>> interface.)
>> So, maybe this patch makes sense to me, and some additional method for
>> checking only interfaces would be nice? (I can't think of a good name for
>> such a method.) Thoughts?
>>
>> -Matt
>> On Jun 29, 2011 5:26 PM, "Ralph Schindler" <ra...@smashlabs.com> wrote:
>>
>
> As in class_implements() (shown in Ralph's example)?
>
> David
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Reply via email to