Bug #54457 [Opn->Dup]: is_subclass_of inconsistent result when used with interfaces
| From: | felipe@php.net | Date: | Tue, 05 Apr 2011 01:18:08 +0000 |
| Subject: | Bug #54457 [Opn->Dup]: is_subclass_of inconsistent result when used with interfaces | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-159958@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54457&edit=1
ID: 54457
Updated by: felipe@php.net
Reported by: giorgio dot liscio at email dot it
Summary: is_subclass_of inconsistent result when used with
interfaces
-Status: Open
+Status: Duplicate
Type: Bug
Package: Class/Object related
Operating System: all
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
Duplicated of bug #53727
Previous Comments:
------------------------------------------------------------------------
[2011-04-03 14:16:28] giorgio dot liscio at email dot it
Description:
------------
hi
interface Y{}
class A implements Y{}
class B extends A{}
echo (is_subclass_of("A", "Y") ? "TRUE" :
"FALSE")."\n"; // false:
incorrect
echo (is_subclass_of("B", "Y") ? "TRUE" :
"FALSE")."\n"; // true:
correct
is_subclass_of must includes interfaces or not,
not sometimes not and sometimes yes
thank you
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54457&edit=1