From 60ec1fc85d91629aa119f200890f4a543cc7063d Mon Sep 17 00:00:00 2001 From: VicDeo Date: Thu, 12 May 2016 13:08:08 +0300 Subject: [PATCH] Put back pcntl warning (#24295) --- console.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/console.php b/console.php index 72f961515d..fc571b03f1 100644 --- a/console.php +++ b/console.php @@ -79,6 +79,10 @@ try { exit(1); } + 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; + } + $application = new Application(\OC::$server->getConfig(), \OC::$server->getEventDispatcher(), \OC::$server->getRequest()); $application->loadCommands(new ArgvInput(), new ConsoleOutput()); $application->run();