Skip to content

Commit cf8835b

Browse files
committed
Improve warning about missing pnctl
Signed-off-by: Carl Schwan <[email protected]>t
1 parent 97c16f5 commit cf8835b

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)