Skip to content

Commit c17e357

Browse files
committed
Merge pull request #1 from hinathan/master
Preload the System\Error class
2 parents f7bb0c5 + c07c0ee commit c17e357

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

public/index.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@
4747
// --------------------------------------------------------------
4848
error_reporting((System\Config::get('error.detail')) ? E_ALL | E_STRICT : 0);
4949

50+
// --------------------------------------------------------------
51+
// Ensure Error class loads before any errors fire.
52+
// --------------------------------------------------------------
53+
class_exists('System\Error');
54+
5055
// --------------------------------------------------------------
5156
// Register the error handlers.
5257
// --------------------------------------------------------------

0 commit comments

Comments
 (0)