Skip to content

Commit 09af26e

Browse files
committed
Improve warning about missing pnctl
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent 45a75c6 commit 09af26e

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 enabeld in your php.ini." . PHP_EOL;
8990
}
9091

9192
$application = new Application(

0 commit comments

Comments
 (0)