소스 검색

Improve warning about missing pnctl

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
tags/v25.0.0beta1
Carl Schwan 1 년 전
부모
커밋
98b25b457e
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      console.php

+ 2
- 1
console.php 파일 보기

@@ -84,8 +84,9 @@ try {
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 enabeld in your php.ini." . PHP_EOL;
}

$application = new Application(

Loading…
취소
저장