xref: /PHP-8.1/ext/exif/tests/bug34704.phpt (revision bd9f4fa6)
1--TEST--
2Bug #34704 (Infinite recursion due to corrupt JPEG)
3--EXTENSIONS--
4exif
5--INI--
6output_handler=
7zlib.output_compression=0
8--FILE--
9<?php
10$infile = __DIR__.'/bug34704.jpg';
11var_dump(exif_read_data($infile));
12?>
13--EXPECTF--
14array(7) {
15  ["FileName"]=>
16  string(12) "bug34704.jpg"
17  ["FileDateTime"]=>
18  int(%d)
19  ["FileSize"]=>
20  int(9976)
21  ["FileType"]=>
22  int(2)
23  ["MimeType"]=>
24  string(10) "image/jpeg"
25  ["SectionsFound"]=>
26  string(4) "IFD0"
27  ["COMPUTED"]=>
28  array(5) {
29    ["html"]=>
30    string(24) "width="386" height="488""
31    ["Height"]=>
32    int(488)
33    ["Width"]=>
34    int(386)
35    ["IsColor"]=>
36    int(1)
37    ["ByteOrderMotorola"]=>
38    int(0)
39  }
40}
41