ID: 38194 Updated by: [EMAIL PROTECTED] Reported By: alex at kiesel dot name -Status: Assigned +Status: Closed Bug Type: Unknown/Other Function Operating System: FreeBSD 6.0 PHP Version: 5.1.4 Assigned To: helly New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2006-07-24 15:01:09] alex at kiesel dot name 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) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38194&edit=1