Merge pull request #32604 from nextcloud/backport/32575/stable23

[stable23] Improve warning about missing pnctl
This commit is contained in:
blizzz 2022-06-12 02:34:45 +02:00 committed by GitHub
commit 6d483c0392
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,8 +84,9 @@ try {
exit(1);
}
if (!function_exists('pcntl_signal') && !in_array('--no-warnings', $argv)) {
if (!(function_exists('pcntl_signal') && function_exists('pcntl_signal_dispatch')) && !in_array('--no-warnings', $argv)) {
echo "The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see https://www.php.net/manual/en/book.pcntl.php" . PHP_EOL;
echo "Additionally the function 'pcntl_signal' and 'pcntl_signal_dispatch' need to be enabled in your php.ini." . PHP_EOL;
}
$application = new Application(