Skip to content

Commit

Permalink
Merge pull request #32603 from nextcloud/backport/32575/stable24
Browse files Browse the repository at this point in the history
[stable24] Improve warning about missing pnctl
  • Loading branch information
blizzz authored Jun 10, 2022
2 parents 5a1185f + d837a02 commit 0cbfae6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion console.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ function exceptionHandler($exception) {
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(
Expand Down

0 comments on commit 0cbfae6

Please sign in to comment.