diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-02-25 10:05:34 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-02-25 10:05:34 +0100 |
commit | 4f60ee90d652d2bfcb2c1227fed29a3c668bc4bd (patch) | |
tree | 6ae476a1c03a8e83682b8cfc7323547ea6a301c9 /console.php | |
parent | 32f4bea0ae174487fd5a58e2c9eeb6e567d1ff91 (diff) | |
download | nextcloud-server-4f60ee90d652d2bfcb2c1227fed29a3c668bc4bd.tar.gz nextcloud-server-4f60ee90d652d2bfcb2c1227fed29a3c668bc4bd.zip |
Don't show PCNTL warning if --no-warnings is passed
* fixes owncloud/updater#252
Diffstat (limited to 'console.php')
-rw-r--r-- | console.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/console.php b/console.php index eb6c84c3cf8..3c25be34fe4 100644 --- a/console.php +++ b/console.php @@ -77,7 +77,7 @@ try { 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; } |