]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't show PCNTL warning if --no-warnings is passed
authorMorris Jobke <hey@morrisjobke.de>
Thu, 25 Feb 2016 09:05:34 +0000 (10:05 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 25 Feb 2016 09:05:34 +0000 (10:05 +0100)
* fixes owncloud/updater#252

console.php

index eb6c84c3cf89d2b8994db6636dc41176ea596d6b..3c25be34fe44925cfdfa6871e1fd2370e94b6be5 100644 (file)
@@ -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;
        }