php-src/ext/exif/tests/bug50660/bug50660.phpt
2019-03-15 22:55:30 +01:00

20 lines
476 B
PHP

--TEST--
Bug #50660 (exif_read_data(): Illegal IFD offset (works fine with other exif readers))
--SKIPIF--
<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
--INI--
output_handler=
zlib.output_compression=0
--FILE--
<?php
$infile = __DIR__.'/bug50660-1.jpg';
var_dump(exif_read_data($infile) !== false);
$infile = __DIR__.'/bug50660-2.jpg';
var_dump(exif_read_data($infile) !== false);
?>
===DONE===
--EXPECT--
bool(true)
bool(true)
===DONE===