xref: /php-src/ext/exif/tests/bug75785/bug75785.phpt (revision ac18dd0d)
1--TEST--
2Bug #75785 fix corrupt EXIF header issues; Related to mixed endianness. (Thank you @Richard Matzinger for providing the test photo)
3--EXTENSIONS--
4exif
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--EXPECT--
1538/1
16122/1
17===DONE===
18