Re: wrong behaviour with is_subclass_of() ??

From: Date: Fri, 19 Sep 2008 14:58:17 +0000
Subject: Re: wrong behaviour with is_subclass_of() ??
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-280506@lists.php.net to get a copy of this message
Stut wrote:
outputs: B implements I I would expect the following output: A implements I B implements I
Because there is a big difference between extends and implements, one of which being that the class is not considered to be a subclass of an interface it implements. Seems entirely logical to me.
But B is also no subclass of I - it just implements I as well as A. So there could be two possible straight solutions: 1. Neither A nor B is a subclass of I. 2. Both A and B are subclasses of I. Johannes

« previous php.general (#280506) next »