Revision 542
Added by thorn almost 17 years ago
trunk/wb/admin/interface/er_levels.php | ||
---|---|---|
51 | 51 |
} else { |
52 | 52 |
$ER_LEVELS[''] = 'System Default'; |
53 | 53 |
} |
54 |
$ER_LEVELS['E_ERROR'] = 'E_ERROR'; |
|
55 |
$ER_LEVELS['E_WARNING'] = 'E_WARNING'; |
|
56 |
$ER_LEVELS['E_PARSE'] = 'E_PARSE'; |
|
57 |
$ER_LEVELS['E_NOTICE'] = 'E_NOTICE'; |
|
58 |
$ER_LEVELS['E_CORE_ERROR'] = 'E_CORE_ERROR'; |
|
59 |
$ER_LEVELS['E_CORE_WARNING'] = 'E_CORE_WARNING'; |
|
60 |
$ER_LEVELS['E_COMPILE_ERROR'] = 'E_COMPILE_ERROR'; |
|
61 |
$ER_LEVELS['E_COMPILE_WARNING'] = 'E_COMPILE_WARNING'; |
|
62 |
$ER_LEVELS['E_USER_ERROR'] = 'E_USER_ERROR'; |
|
63 |
$ER_LEVELS['E_USER_WARNING'] = 'E_USER_WARNING'; |
|
64 |
$ER_LEVELS['E_USER_NOTICE'] = 'E_USER_NOTICE'; |
|
65 |
$ER_LEVELS['E_ALL'] = 'E_ALL'; |
|
66 |
$ER_LEVELS['E_STRICT'] = 'E_STRICT'; |
|
54 |
$ER_LEVELS['6135'] = 'E_ALL^E_NOTICE'; // standard: E_ALL without E_NOTICE |
|
55 |
$ER_LEVELS['0'] = 'E_NONE'; |
|
56 |
$ER_LEVELS['6143'] = 'E_ALL'; |
|
57 |
$ER_LEVELS['8191'] = 'E_ALL&E_STRICT'; // for programmers |
|
67 | 58 |
|
68 | 59 |
?> |
trunk/wb/framework/initialize.php | ||
---|---|---|
51 | 51 |
$string_dir_mode = STRING_DIR_MODE; |
52 | 52 |
define('OCTAL_DIR_MODE',(int) octdec($string_dir_mode)); |
53 | 53 |
|
54 |
// set error-reporting |
|
55 |
if(is_numeric(ER_LEVEL)) { |
|
56 |
error_reporting(ER_LEVEL); |
|
57 |
} |
|
58 |
|
|
54 | 59 |
// Start a session |
55 | 60 |
if(!defined('SESSION_STARTED')) { |
56 | 61 |
session_name(APP_NAME.'_session_id'); |
Also available in: Unified diff
fixed #532 - PHP Error levels