CC-4389: Convert all PHP errors to throw exceptions instead

-fixed
This commit is contained in:
Martin Konecny 2012-09-10 17:36:55 -04:00
parent d8b0de4ffa
commit ade4bcf958
1 changed files with 7 additions and 3 deletions

View File

@ -1,8 +1,12 @@
<?php
//error_reporting(E_ALL|E_STRICT);
//error_reporting(E_ALL);
//ini_set('display_errors', 'on');
error_reporting(E_ALL|E_STRICT);
function exception_error_handler($errno, $errstr, $errfile, $errline)
{
throw new ErrorException($errstr, $errno, 0, $errfile, $errline);
}
set_error_handler("exception_error_handler");
// Define path to application directory
defined('APPLICATION_PATH')