xref: /PHP-7.4/ext/exif/tests/bug77184/bug77184.phpt (revision c025cf47)
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 = __DIR__.'/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--EXPECT--
17156691934/70000000
182672193571/70000000
19===DONE===
20