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 e6932f5 commit aea768c
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 @@ -1260,7 +1260,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 -i Zip');
$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'");
Expand Down

0 comments on commit aea768c

Please sign in to comment.