-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PHP-7.3: Fix bug #75785 by attempt switching endianness on Maker's Note
- Loading branch information
Showing
4 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--TEST-- | ||
Bug #75785 fix corrupt EXIF header issues; Related to mixed endianness. (Thank you @Richard Matzinger for providing the test photo) | ||
--SKIPIF-- | ||
<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?> | ||
--FILE-- | ||
<?php | ||
$mixedEndiannessFile = dirname(__FILE__).'/P1000506.JPG'; | ||
$tags = exif_read_data($mixedEndiannessFile, 'EXIF', true, false); | ||
|
||
echo $tags['GPS']['GPSLatitude'][0] . PHP_EOL; | ||
echo $tags['GPS']['GPSLongitude'][0] . PHP_EOL; | ||
?> | ||
===DONE=== | ||
--EXPECTF-- | ||
38/1 | ||
122/1 | ||
===DONE=== |