xref: /PHP-7.3/ext/exif/tests/bug77184/bug77184.phpt (revision 9ec519e0)
1--TEST--
2Bug #74428 (Unsigned rational numbers are written out as signed rationals)
3--SKIPIF--
4<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
5--INI--
6output_handler=
7zlib.output_compression=0
8--FILE--
9<?php
10$infile = dirname(__FILE__).'/DJI_0245_tiny.JPG';
11$tags = exif_read_data($infile);
12echo $tags['GPSLatitude'][2], PHP_EOL;
13echo $tags['GPSLongitude'][2], PHP_EOL;
14?>
15===DONE===
16--EXPECTF--
17156691934/70000000
182672193571/70000000
19===DONE===
20