From: christopheb156 at hotmail dot com Operating system: xp PHP version: 5.2SVN-2009-08-19 (snap) PHP Bug Type: SPL related Bug description: spl_autoload throws an exception instead of fatal error
Description: ------------ spl_autoload should produce a fatal error when called indirectly, internal errors should generate E_ERROR, however in spl_autoload_001.phpt a call to class_exists throws an exception. Reproduce code: --------------- <?php spl_autoload_register(); try { var_dump(class_exists("TestClass", true)); } catch(Exception $e) { echo $e->getMessage() . "\n"; } ?> Expected result: ---------------- Fatal Error.... Actual result: -------------- Class TestClass could not be loaded -- Edit bug report at http://bugs.php.net/?id=49296&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49296&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49296&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49296&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49296&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49296&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49296&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49296&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49296&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49296&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49296&r=support Expected behavior: http://bugs.php.net/fix.php?id=49296&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49296&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49296&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49296&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49296&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49296&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49296&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49296&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49296&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49296&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49296&r=mysqlcfg