|
67 | 67 | | https://tldp.org/LDP/abs/html/exitcodes.html |
68 | 68 | | |
69 | 69 | */ |
70 | | -defined('EXIT_SUCCESS') || define('EXIT_SUCCESS', 0); // no errors |
71 | | -defined('EXIT_ERROR') || define('EXIT_ERROR', 1); // generic error |
72 | | -defined('EXIT_CONFIG') || define('EXIT_CONFIG', 3); // configuration error |
73 | | -defined('EXIT_UNKNOWN_FILE') || define('EXIT_UNKNOWN_FILE', 4); // file not found |
74 | | -defined('EXIT_UNKNOWN_CLASS') || define('EXIT_UNKNOWN_CLASS', 5); // unknown class |
| 70 | +defined('EXIT_SUCCESS') || define('EXIT_SUCCESS', 0); // no errors |
| 71 | +defined('EXIT_ERROR') || define('EXIT_ERROR', 1); // generic error |
| 72 | +defined('EXIT_CONFIG') || define('EXIT_CONFIG', 3); // configuration error |
| 73 | +defined('EXIT_UNKNOWN_FILE') || define('EXIT_UNKNOWN_FILE', 4); // file not found |
| 74 | +defined('EXIT_UNKNOWN_CLASS') || define('EXIT_UNKNOWN_CLASS', 5); // unknown class |
75 | 75 | defined('EXIT_UNKNOWN_METHOD') || define('EXIT_UNKNOWN_METHOD', 6); // unknown class member |
76 | | -defined('EXIT_USER_INPUT') || define('EXIT_USER_INPUT', 7); // invalid user input |
77 | | -defined('EXIT_DATABASE') || define('EXIT_DATABASE', 8); // database error |
78 | | -defined('EXIT__AUTO_MIN') || define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code |
79 | | -defined('EXIT__AUTO_MAX') || define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code |
80 | | - |
81 | | -/** |
82 | | - * @deprecated Use \CodeIgniter\Events\Events::PRIORITY_LOW instead. |
83 | | - */ |
84 | | -define('EVENT_PRIORITY_LOW', 200); |
85 | | - |
86 | | -/** |
87 | | - * @deprecated Use \CodeIgniter\Events\Events::PRIORITY_NORMAL instead. |
88 | | - */ |
89 | | -define('EVENT_PRIORITY_NORMAL', 100); |
90 | | - |
91 | | -/** |
92 | | - * @deprecated Use \CodeIgniter\Events\Events::PRIORITY_HIGH instead. |
93 | | - */ |
94 | | -define('EVENT_PRIORITY_HIGH', 10); |
| 76 | +defined('EXIT_USER_INPUT') || define('EXIT_USER_INPUT', 7); // invalid user input |
| 77 | +defined('EXIT_DATABASE') || define('EXIT_DATABASE', 8); // database error |
| 78 | +defined('EXIT__AUTO_MIN') || define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code |
| 79 | +defined('EXIT__AUTO_MAX') || define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code |
0 commit comments