Skip to content

Commit

Permalink
fix: checks if exist is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed May 21, 2024
1 parent 3d2db93 commit 8987596
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Util/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ function ($severity, $message, $file, $line) {
);

try {
if (!function_exists('exif_read_data')) {
throw new \ErrorException('`exif` extension is not available.');
}
$exif = exif_read_data($filename, null, true);
if ($exif === false) {
return [];
Expand Down

0 comments on commit 8987596

Please sign in to comment.