From: zoe at uk dot ibm dot com
Operating system: Any
PHP version: 5CVS-2007-07-11 (CVS)
PHP Bug Type: Scripting Engine problem
Bug description: Incorrect error message
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 bug report at http://bugs.php.net/?id=41962&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=41962&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=41962&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=41962&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41962&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=41962&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41962&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41962&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41962&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41962&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41962&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=41962&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=41962&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41962&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41962&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41962&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41962&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41962&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41962&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41962&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41962&r=mysqlcfg