xref: /PHP-7.3/ext/exif/tests/bug68547.phpt (revision 2823e938)
1--TEST--
2Bug #68547 (Exif Header component value check error)
3--SKIPIF--
4<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
5--FILE--
6<?php
7var_dump(exif_read_data(__DIR__ . DIRECTORY_SEPARATOR . 'bug68547.jpg'));
8?>
9===DONE===
10--EXPECTF--
11array(12) {
12  ["FileName"]=>
13  string(12) "bug68547.jpg"
14  ["FileDateTime"]=>
15  int(%d)
16  ["FileSize"]=>
17  int(713)
18  ["FileType"]=>
19  int(2)
20  ["MimeType"]=>
21  string(10) "image/jpeg"
22  ["SectionsFound"]=>
23  string(20) "ANY_TAG, IFD0, WINXP"
24  ["COMPUTED"]=>
25  array(5) {
26    ["html"]=>
27    string(20) "width="1" height="1""
28    ["Height"]=>
29    int(1)
30    ["Width"]=>
31    int(1)
32    ["IsColor"]=>
33    int(1)
34    ["ByteOrderMotorola"]=>
35    int(0)
36  }
37  ["Subject"]=>
38  string(10) "Subjec??.."
39  ["Keywords"]=>
40  string(0) ""
41  ["Author"]=>
42  string(9) "Rui Carmo"
43  ["Comments"]=>
44  string(29) "Comments
45Line2
46Line3
47Line4"
48  ["Title"]=>
49  string(8) "Title..."
50}
51===DONE===
52