|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-19 14:28 UTC] colder@php.net
[2009-08-20 10:26 UTC] christopheb156 at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 12:00:01 2025 UTC |
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