xref: /PHP-8.0/ext/exif/tests/bug75785/bug75785.phpt (revision 2fa4ca95)
1--TEST--
2Bug #75785 fix corrupt EXIF header issues; Related to mixed endianness. (Thank you @Richard Matzinger for providing the test photo)
3--SKIPIF--
4<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
5--FILE--
6<?php
7$mixedEndiannessFile = dirname(__FILE__).'/P1000506.JPG';
8$tags = exif_read_data($mixedEndiannessFile, 'EXIF', true, false);
9
10echo $tags['GPS']['GPSLatitude'][0] . PHP_EOL;
11echo $tags['GPS']['GPSLongitude'][0] . PHP_EOL;
12?>
13===DONE===
14--EXPECTF--
1538/1
16122/1
17===DONE===
18