Add process error function
This commit is contained in:
parent
a0bd7d2f61
commit
826a35c1ba
@ -138,6 +138,21 @@ session_start();
|
||||
// This include will set: $conf, $db, $langs, $user, $mysoc objects
|
||||
require_once("master.inc.php");
|
||||
|
||||
// Activate error interceptions
|
||||
/*
|
||||
function processError($code, $message, $file, $line, $context)
|
||||
{
|
||||
$errmess='ERROR '.$file.' - '.$line.' - '.error_reporting()." - ".$code."<br>\n";
|
||||
//print $errmess;
|
||||
if (error_reporting() & $code) {
|
||||
print $errmess;
|
||||
throw new Exception($message, $code);
|
||||
}
|
||||
}
|
||||
set_error_handler('processError');
|
||||
*/
|
||||
|
||||
// Activate end of page function
|
||||
register_shutdown_function('dol_shutdown');
|
||||
|
||||
// Detection browser
|
||||
|
||||
Loading…
Reference in New Issue
Block a user