private function checkCompatibility() { if (Common::isPhpCgiType()) { echo 'Piwik Console is known to be not compatible with PHP-CGI (you are using ' . php_sapi_name() . '). ' . 'Please execute console using PHP-CLI. For instance "/usr/bin/php-cli console ..."'; echo "\n"; exit(1); } }
public static function isSupported() { return Common::isPhpCliMode() && !Common::isPhpCgiType(); }
/** * What is missing under windows? Detection whether a process is still running in Process::isProcessStillRunning * and how to send a process into background in start() */ public function supportsAsync() { return Process::isSupported() && !Common::isPhpCgiType() && $this->findPhpBinary(); }