|
|
@@ -23,13 +23,13 @@ if (function_exists('opcache_reset')) {
|
|
|
}
|
|
|
|
|
|
// For onError callback.
|
|
|
-define('WORKERMAN_CONNECT_FAIL', 1);
|
|
|
+const WORKERMAN_CONNECT_FAIL = 1;
|
|
|
// For onError callback.
|
|
|
-define('WORKERMAN_SEND_FAIL', 2);
|
|
|
+const WORKERMAN_SEND_FAIL = 2;
|
|
|
|
|
|
// Define OS Type
|
|
|
-define('OS_TYPE_LINUX', 'linux');
|
|
|
-define('OS_TYPE_WINDOWS', 'windows');
|
|
|
+const OS_TYPE_LINUX = 'linux';
|
|
|
+const OS_TYPE_WINDOWS = 'windows';
|
|
|
|
|
|
// Compatible with php7
|
|
|
if(!class_exists('Error'))
|