1--TEST-- 2Bug #74428 (exif_read_data(): "Illegal IFD size" warning occurs with correct exif format) 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__.'/bug74428.jpg'; 11var_dump(exif_read_data($infile)); 12?> 13===DONE=== 14--EXPECTF-- 15array(11) { 16 ["FileName"]=> 17 string(12) "bug74428.jpg" 18 ["FileDateTime"]=> 19 int(%d) 20 ["FileSize"]=> 21 int(1902) 22 ["FileType"]=> 23 int(2) 24 ["MimeType"]=> 25 string(10) "image/jpeg" 26 ["SectionsFound"]=> 27 string(19) "ANY_TAG, IFD0, EXIF" 28 ["COMPUTED"]=> 29 array(5) { 30 ["html"]=> 31 string(22) "width="88" height="28"" 32 ["Height"]=> 33 int(28) 34 ["Width"]=> 35 int(88) 36 ["IsColor"]=> 37 int(1) 38 ["ByteOrderMotorola"]=> 39 int(0) 40 } 41 ["Orientation"]=> 42 int(1) 43 ["Exif_IFD_Pointer"]=> 44 int(38) 45 ["ExifImageWidth"]=> 46 int(88) 47 ["ExifImageLength"]=> 48 int(28) 49} 50===DONE=== 51