diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-05 18:18:51 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-05 18:18:51 +0200 |
| commit | 74b285d78caf92364584397c2d986ad35cdeb856 (patch) | |
| tree | 9053541783c79d2d4f9607bcbbbf7f3141cac84b /sapi/cli | |
| parent | 52047addc79b067d302c4fb23e235b0e530f9a70 (diff) | |
| parent | 99645f5352b5dc9faaece36f606edfff5f7a7460 (diff) | |
| download | php-git-74b285d78caf92364584397c2d986ad35cdeb856.tar.gz | |
Merge branch 'PHP-7.4'
* PHP-7.4:
Check ps -p availability in process title test
Add privilege check in pcntl_unshare test
Diffstat (limited to 'sapi/cli')
| -rw-r--r-- | sapi/cli/tests/cli_process_title_unix.phpt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sapi/cli/tests/cli_process_title_unix.phpt b/sapi/cli/tests/cli_process_title_unix.phpt index d6e49a2221..166cb79ad3 100644 --- a/sapi/cli/tests/cli_process_title_unix.phpt +++ b/sapi/cli/tests/cli_process_title_unix.phpt @@ -7,7 +7,12 @@ if (PHP_SAPI !== "cli") if (!PHP_CLI_PROCESS_TITLE) die("skip process title not available (disabled or unsupported)"); if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') - die("skip"); + die("skip Not for Windows"); + +exec("ps -p 1", $output, $exit_code); +if ($exit_code !== 0) { + die("skip ps -p is not available"); +} ?> --FILE-- <?php |
