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

From: Date: Thu, 30 Jun 2011 01:13:24 +0000
Subject: Re: Fix for #53727 (is_subclass_of resolution with interfaces)
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-53691@lists.php.net to get a copy of this message
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:

« previous php.internals (#53691) next »