bug75785.phpt 444 B

1234567891011121314151617
  1. --TEST--
  2. Bug #75785 fix corrupt EXIF header issues; Related to mixed endianness. (Thank you @Richard Matzinger for providing the test photo)
  3. --EXTENSIONS--
  4. exif
  5. --FILE--
  6. <?php
  7. $mixedEndiannessFile = dirname(__FILE__).'/P1000506.JPG';
  8. $tags = exif_read_data($mixedEndiannessFile, 'EXIF', true, false);
  9. echo $tags['GPS']['GPSLatitude'][0] . PHP_EOL;
  10. echo $tags['GPS']['GPSLongitude'][0] . PHP_EOL;
  11. ?>
  12. ===DONE===
  13. --EXPECT--
  14. 38/1
  15. 122/1
  16. ===DONE===