Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Dec 19, 2023
1 parent f7430c5 commit 357d60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ function checkZipArchiveAndVersion() {
preg_match('/^PHP\s+([0-9]+\.[0-9]+)/m', $cliVersionOutput, $matches);
$cliVersion = empty($matches[1])?'':$matches[1];

$cliZipCheckOutput = shell_exec('php -m | grep Zip');
$cliZipCheckOutput = shell_exec('php -m | grep -i Zip');
if (empty($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'");
}
Expand Down

0 comments on commit 357d60e

Please sign in to comment.