ID:               38194
 Updated by:       [EMAIL PROTECTED]
 Reported By:      alex at kiesel dot name
-Status:           Open
+Status:           Assigned
-Bug Type:         Scripting Engine problem
+Bug Type:         Unknown/Other Function
 Operating System: FreeBSD 6.0
 PHP Version:      5.1.4
-Assigned To:      
+Assigned To:      helly


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

Reply via email to