ID: 49296 Updated by: col...@php.net Reported By: christopheb156 at hotmail dot com -Status: Open +Status: Bogus Bug Type: SPL related Operating System: xp PHP Version: 5.2SVN-2009-08-19 (snap) New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. We're dealing with OOP here, exceptions feels like the natural way to report/handle such errors. Previous Comments: ------------------------------------------------------------------------ [2009-08-19 13:54:06] christopheb156 at hotmail dot com 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 this bug report at http://bugs.php.net/?id=49296&edit=1