Try to detect a read error while discovering EXIF properties in an image file.
On older PHP versions, the detection just fails returning anything for $metadata. However, with newer PHP versions, it returns an array with only a 'filesize' key.
This PR adapts the logic to account for this and to fix a test failure on bad JPGs that was introduced by that new behavior.
Try to detect a read error while discovering EXIF properties in an image file.
On older PHP versions, the detection just fails returning anything for
$metadata
. However, with newer PHP versions, it returns an array with only a'filesize'
key.This PR adapts the logic to account for this and to fix a test failure on bad JPGs that was introduced by that new behavior.