ID:               41962
 Updated by:       [EMAIL PROTECTED]
 Reported By:      zoe at uk dot ibm dot com
-Status:           Open
+Status:           Closed
-Bug Type:         Scripting Engine problem
+Bug Type:         Unknown/Other Function
 Operating System: Any
 PHP Version:      5CVS-2007-07-11 (CVS)
 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:
------------------------------------------------------------------------

[2007-07-11 13:14:09] zoe at uk dot ibm dot com

Description:
------------
This is a minor mistake in an error message in reflectionClass.
When isSubClassOf() is given a non-existent class (X)  as a parameter
the resulting fatal error says "Interface X does not exist". This should
read "Class X does not exist".

Reproduce code:
---------------
--TEST--
ReflectionClass::isSubclassOf() - non-existent class error
--FILE--
<?php
class A {}
$rc = new ReflectionClass('A');

var_dump($rc->isSubclassOf('X'));

?>
--EXPECTF--
Fatal error: Uncaught exception 'ReflectionException' with message
'Class X does not exist' in %s:5
Stack trace:
#0 %s(5): ReflectionClass->isSubclassOf('X')
#1 {main}
  thrown in %s on line 5


Expected result:
----------------
See EXPECT section above

Actual result:
--------------
Fatal error: Uncaught exception 'ReflectionException' with message
'Interface X does not exist' in %s:5


------------------------------------------------------------------------


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

Reply via email to