source: src/router/php7/ext/exif/tests/bug34704-mb.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 4 months ago

update php

File size: 855 bytes
Line 
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(48) "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===
Note: See TracBrowser for help on using the repository browser.