Edit report at http://bugs.php.net/bug.php?id=54457&edit=1

 ID:                 54457
 Updated by:         [email protected]
 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

Reply via email to