From c95757175b67c91cfbda638a8255ebadba15baee Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 17 Aug 2011 10:23:54 -0500 Subject: [PATCH] Make sure file class is loaded before handling exceptions. --- system/laravel.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/laravel.php b/system/laravel.php index fe03315b..b48bb3cc 100644 --- a/system/laravel.php +++ b/system/laravel.php @@ -61,6 +61,7 @@ { require_once SYS_PATH.'exception/handler'.EXT; require_once SYS_PATH.'exception/examiner'.EXT; + require_once SYS_PATH.'file'.EXT; Exception\Handler::make($e)->handle(); }); @@ -69,6 +70,7 @@ { require_once SYS_PATH.'exception/handler'.EXT; require_once SYS_PATH.'exception/examiner'.EXT; + require_once SYS_PATH.'file'.EXT; Exception\Handler::make(new \ErrorException($error, $number, 0, $file, $line))->handle(); }); @@ -79,6 +81,7 @@ { require_once SYS_PATH.'exception/handler'.EXT; require_once SYS_PATH.'exception/examiner'.EXT; + require_once SYS_PATH.'file'.EXT; extract($error);