diff --git a/src/Console/Portal.php b/src/Console/Portal.php index 0af023f..52d023a 100644 --- a/src/Console/Portal.php +++ b/src/Console/Portal.php @@ -350,6 +350,9 @@ protected function getConfigPath() public static function runCommand($cmd, $input = null) { + if (!function_exists('popen')) { + throw new \Exception('Function popen is not exist, please enable it.'); + } $fp = popen($cmd, 'wb'); if ($fp === false) { return false;