Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Feb 23, 2024
1 parent aea768c commit cbc6589
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions objects/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1260,10 +1260,13 @@ function checkZipArchiveAndVersion() {
preg_match('/^PHP\s+([0-9]+\.[0-9]+)/m', $cliVersionOutput, $matches);
$cliVersion = empty($matches[1])?'':$matches[1];

$cliZipCheckOutput = shell_exec('php -m | /bin/grep -i Zip');
$cliZipCheckOutput = shell_exec('php -m | grep -i Zip');
if (empty($cliZipCheckOutput)) {
var_dump($cliZipCheckOutput);
die("The ZipArchive class is not available in the PHP CLI environment. The CLI is using PHP version $cliVersion. Please install the PHP Zip extension for this version. On Ubuntu, run: 'sudo apt install php" . $cliVersion . "-zip && sudo /etc/init.d/apache2 restart'");
$cliZipCheckOutput = shell_exec('php -m | /bin/grep -i Zip');
if (empty($cliZipCheckOutput)) {
var_dump($cliZipCheckOutput);
die("The ZipArchive class is not available in the PHP CLI environment. The CLI is using PHP version $cliVersion. Please install the PHP Zip extension for this version. On Ubuntu, run: 'sudo apt install php" . $cliVersion . "-zip && sudo /etc/init.d/apache2 restart'");
}
}
}

0 comments on commit cbc6589

Please sign in to comment.