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