From cf8835be1aad8befa3b9fa43d43cfa5b478bf95f Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 24 May 2022 14:34:20 +0200 Subject: [PATCH] Improve warning about missing pnctl Signed-off-by: Carl Schwan t --- console.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/console.php b/console.php index 7903ad25c7029..f9a4689bd5895 100644 --- a/console.php +++ b/console.php @@ -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(