Don't show PCNTL warning if --no-warnings is passed

* fixes owncloud/updater#252
This commit is contained in:
Morris Jobke 2016-02-25 10:05:34 +01:00
parent 32f4bea0ae
commit 4f60ee90d6
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ try {
exit(1); exit(1);
} }
if (!function_exists('pcntl_signal')) { if (!function_exists('pcntl_signal') && !in_array('--no-warnings', $argv)) {
echo "The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php" . PHP_EOL; echo "The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php" . PHP_EOL;
} }