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