You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Worker.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ class Worker
33
33
*
34
34
* @var string
35
35
*/
36
-
constVERSION = '4.0.15';
36
+
constVERSION = '4.0.16';
37
37
38
38
/**
39
39
* Status starting.
@@ -756,7 +756,7 @@ protected static function getCurrentUser()
756
756
*/
757
757
protectedstaticfunctiondisplayUI()
758
758
{
759
-
$argv = $_SERVER['argv'];
759
+
global$argv;
760
760
if (\in_array('-q', $argv)) {
761
761
return;
762
762
}
@@ -867,7 +867,7 @@ protected static function parseCommand()
867
867
if (static::$_OS !== \OS_TYPE_LINUX) {
868
868
return;
869
869
}
870
-
$argv = $_SERVER['argv'];
870
+
global$argv;
871
871
// Check argv;
872
872
$start_file = $argv[0];
873
873
$usage = "Usage: php yourfile <command> [mode]\nCommands: \nstart\t\tStart worker in DEBUG mode.\n\t\tUse mode -d to start in DAEMON mode.\nstop\t\tStop worker.\n\t\tUse mode -g to stop gracefully.\nrestart\t\tRestart workers.\n\t\tUse mode -d to start in DAEMON mode.\n\t\tUse mode -g to stop gracefully.\nreload\t\tReload codes.\n\t\tUse mode -g to reload gracefully.\nstatus\t\tGet worker status.\n\t\tUse mode -d to show live status.\nconnections\tGet worker connections.\n";
0 commit comments