From: alexmontoanelli at gmail dot com Operating system: Linux PHP version: 5.2.6 PHP Bug Type: Class/Object related Bug description: class_exists return nothing and die script
Description: ------------ I Have a Interface class, One normal class, if the normal class do not have all interfaces methods implements, an i call class_exists('my_normal_class_extends_interface'), the script is die, and no value is retorned. If the normal class have all methods defined, then work fine. Sorry for bad english. Reproduce code: --------------- Interface myInterface { public funtion foo(); } class normalClass implements myInterface{} var_dump(class_exists('normalClass')); Expected result: ---------------- i exptec php Reporting a fatal error, because the first 'normalClass', no implements all methods in interface myInterface Actual result: -------------- Php die, when call class_exists -- Edit bug report at http://bugs.php.net/?id=45633&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45633&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45633&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45633&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45633&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45633&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45633&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45633&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45633&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45633&r=support Expected behavior: http://bugs.php.net/fix.php?id=45633&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45633&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45633&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45633&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45633&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45633&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45633&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45633&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45633&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45633&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45633&r=mysqlcfg