Skip to content

Commit 6d483c0

Browse files
authored
Merge pull request #32604 from nextcloud/backport/32575/stable23
[stable23] Improve warning about missing pnctl
2 parents d2bd065 + ce5af32 commit 6d483c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

console.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ function exceptionHandler($exception) {
8484
exit(1);
8585
}
8686

87-
if (!function_exists('pcntl_signal') && !in_array('--no-warnings', $argv)) {
87+
if (!(function_exists('pcntl_signal') && function_exists('pcntl_signal_dispatch')) && !in_array('--no-warnings', $argv)) {
8888
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;
89+
echo "Additionally the function 'pcntl_signal' and 'pcntl_signal_dispatch' need to be enabled in your php.ini." . PHP_EOL;
8990
}
9091

9192
$application = new Application(

0 commit comments

Comments
 (0)