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