xref: /PHP-7.2/ext/exif/tests/bug50660/bug50660.phpt (revision 17ccbeec)
1--TEST--
2Bug #50660 (exif_read_data(): Illegal IFD offset (works fine with other exif readers))
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__).'/bug50660-1.jpg';
11var_dump(exif_read_data($infile) !== false);
12$infile = dirname(__FILE__).'/bug50660-2.jpg';
13var_dump(exif_read_data($infile) !== false);
14?>
15===DONE===
16--EXPECT--
17bool(true)
18bool(true)
19===DONE===
20