|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-25 12:36 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 20:00:01 2025 UTC |
Description: ------------ The ReflectionClass::isSubclassOf() returns TRUE when passing a ReflectionClass object of the same class as parameter. A class is not a subclass of itself, however. Reproduce code: --------------- <?php class Object { } $objectClass= new ReflectionClass('Object'); var_dump($objectClass->isSubclassOf($objectClass)); ?> Expected result: ---------------- bool(false) Actual result: -------------- bool(true)