xref: /PHP-8.0/ext/exif/tests/bug50660/bug50660.phpt (revision a555cc0b)
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 = __DIR__.'/bug50660-1.jpg';
11var_dump(exif_read_data($infile) !== false);
12$infile = __DIR__.'/bug50660-2.jpg';
13var_dump(exif_read_data($infile) !== false);
14?>
15--EXPECT--
16bool(true)
17bool(true)
18