Skip to content

Commit

Permalink
fix: pr
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Jun 20, 2023
1 parent 1ef5d1e commit 4851e83
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions bin/hyperf.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@

error_reporting(E_ALL);

! defined('BASE_PATH') && (
str_contains(PHP_OS, 'CYGWIN') ? define('BASE_PATH', dirname(__FILE__, 1)) : define('BASE_PATH', dirname(__DIR__, 1))
);

! defined('SWOOLE_HOOK_FLAGS') && (
str_contains(PHP_OS, 'CYGWIN') ? define('SWOOLE_HOOK_FLAGS', SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_BLOCKING_FUNCTION) : define('SWOOLE_HOOK_FLAGS', SWOOLE_HOOK_ALL)
);

! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));
! defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', SWOOLE_HOOK_ALL);
! defined('START_TIME') && define('START_TIME', time()); // 启动时间
! defined('HF_VERSION') && define('HF_VERSION', '3.0'); // 定义hyperf版本号

Expand Down

0 comments on commit 4851e83

Please sign in to comment.