Re: Fix for #53727 (is_subclass_of resolution with interfaces)

From: Date: Thu, 30 Jun 2011 04:44:48 +0000
Subject: Re: Fix for #53727 (is_subclass_of resolution with interfaces)
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-53692@lists.php.net to get a copy of this message
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" <ralph@smashlabs.com> wrote: > As in class_implements() (shown in Ralph's example)? David

« previous php.internals (#53692) next »