|
12 | 12 | use Closure;
|
13 | 13 | use RuntimeException;
|
14 | 14 | use Toolkit\Stdlib\OS;
|
15 | | -use function pcntl_fork; |
16 | | -use function pcntl_waitpid; |
17 | | -use function pcntl_wexitstatus; |
18 | 15 | use function array_merge;
|
19 | | -use function posix_kill; |
20 | | -use function time; |
21 | | -use function usleep; |
| 16 | +use function cli_set_process_title; |
| 17 | +use function error_get_last; |
| 18 | +use function file_exists; |
| 19 | +use function file_get_contents; |
| 20 | +use function function_exists; |
| 21 | +use function getmypid; |
| 22 | +use function pcntl_alarm; |
| 23 | +use function pcntl_async_signals; |
| 24 | +use function pcntl_fork; |
22 | 25 | use function pcntl_signal;
|
23 | 26 | use function pcntl_signal_dispatch;
|
24 | 27 | use function pcntl_signal_get_handler;
|
25 | | -use function pcntl_async_signals; |
| 28 | +use function pcntl_waitpid; |
| 29 | +use function pcntl_wexitstatus; |
| 30 | +use function posix_geteuid; |
| 31 | +use function posix_getgrnam; |
26 | 32 | use function posix_getpid;
|
27 | | -use function getmypid; |
28 | | -use function file_exists; |
29 | | -use function file_get_contents; |
30 | | -use function unlink; |
| 33 | +use function posix_getpwnam; |
31 | 34 | use function posix_getpwuid;
|
32 | 35 | use function posix_getuid;
|
33 | | -use function pcntl_alarm; |
34 | | -use function cli_set_process_title; |
35 | | -use function error_get_last; |
36 | | -use function posix_getpwnam; |
37 | | -use function posix_getgrnam; |
| 36 | +use function posix_kill; |
38 | 37 | use function posix_setgid;
|
39 | 38 | use function posix_setuid;
|
40 | | -use function posix_geteuid; |
41 | | -use function function_exists; |
| 39 | +use function time; |
| 40 | +use function unlink; |
| 41 | +use function usleep; |
42 | 42 | use const DIRECTORY_SEPARATOR;
|
43 | 43 | use const PHP_OS;
|
44 | 44 |
|
@@ -94,7 +94,7 @@ public static function isPtySupported(): bool
|
94 | 94 | return $result = false;
|
95 | 95 | }
|
96 | 96 |
|
97 | | - return $result = (bool)@proc_open('echo 1 >/dev/null', [['pty'], ['pty'], ['pty']], $pipes); |
| 97 | + return $result = (bool)@proc_open('echo 1 >/dev/null', [['pty'], ['pty'], ['pty']], $pipes); |
98 | 98 | }
|
99 | 99 |
|
100 | 100 | /**********************************************************************
|
|
0 commit comments