|
@@ -2,11 +2,11 @@
|
|
declare(strict_types=0);
|
|
declare(strict_types=0);
|
|
|
|
|
|
define('APP_ID', 'rdispatcher');
|
|
define('APP_ID', 'rdispatcher');
|
|
-define('MOBILE_SERVER',true);
|
|
|
|
-define('SUPPORT_PTHREAD',true);
|
|
|
|
|
|
+define('MOBILE_SERVER', true);
|
|
|
|
+define('SUPPORT_PTHREAD', true);
|
|
|
|
|
|
-define('BASE_ROOT_PATH',str_replace('/rdispatcher','',dirname(__FILE__)));
|
|
|
|
-define('BASE_PATH',BASE_ROOT_PATH . '/rdispatcher');
|
|
|
|
|
|
+define('BASE_ROOT_PATH', str_replace('/rdispatcher', '', dirname(__FILE__)));
|
|
|
|
+define('BASE_PATH', BASE_ROOT_PATH . '/rdispatcher');
|
|
|
|
|
|
require_once(BASE_ROOT_PATH . '/global.php');
|
|
require_once(BASE_ROOT_PATH . '/global.php');
|
|
require_once(BASE_ROOT_PATH . '/fooder.php');
|
|
require_once(BASE_ROOT_PATH . '/fooder.php');
|
|
@@ -31,7 +31,7 @@ function all_channels() {
|
|
function handle_error($level, $message, $file, $line)
|
|
function handle_error($level, $message, $file, $line)
|
|
{
|
|
{
|
|
if($level == E_NOTICE) return;
|
|
if($level == E_NOTICE) return;
|
|
- $trace = "handle_error: level={$level},msg={$message} file={$file},line={$line}\n";
|
|
|
|
|
|
+ $trace = "handle_error: level=$level,msg=$message file=$file,line=$line\n";
|
|
$backtrace = debug_backtrace();
|
|
$backtrace = debug_backtrace();
|
|
foreach ($backtrace as $item) {
|
|
foreach ($backtrace as $item) {
|
|
$trace .= "{$item['file']}\t{$item['line']}\t{$item['function']}\n";
|
|
$trace .= "{$item['file']}\t{$item['line']}\t{$item['function']}\n";
|