1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 01:54:12 +02:00

Turn off web error handler for CLI (breaks a lot of stuff!)

error_handler now only runs set_error_handler in web mode.

E_ALL notices, warnings, and errors are now reported, which causes
the test harness to fail.
This commit is contained in:
Nick Liu
2020-01-17 14:48:55 +01:00
parent 34047a2db3
commit b9d4961571
2 changed files with 3 additions and 3 deletions

View File

@@ -144,7 +144,6 @@ if(!defined('e_ROOT'))
// (Now we can see PHP errors) -- but note that DEBUG is not yet enabled!
//
$error_handler = new error_handler();
set_error_handler(array(&$error_handler, 'handle_error'));
//
// E: Setup other essential PHP parameters
@@ -2462,6 +2461,8 @@ class error_handler
{
error_reporting(E_ERROR | E_PARSE);
}
set_error_handler(array(&$this, 'handle_error'));
}
/**