1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00
Files
archived-php-src/ext/exif/tests/bug34704.phpt
T
Max Semenik bd9f4fa676 Migrate skip checks to --EXTENSIONS--, p2
For rationale, see https://github.com/php/php-src/pull/6787

Make extension checks lowercase, add a special case for opcache
that has internal name not matching .so filename.

Extensions migrated in part 2:
* dom
* exif
* fileinfo
* ffi
2021-04-01 12:08:24 +01:00

41 lines
677 B
PHP

--TEST--
Bug #34704 (Infinite recursion due to corrupt JPEG)
--EXTENSIONS--
exif
--INI--
output_handler=
zlib.output_compression=0
--FILE--
<?php
$infile = __DIR__.'/bug34704.jpg';
var_dump(exif_read_data($infile));
?>
--EXPECTF--
array(7) {
["FileName"]=>
string(12) "bug34704.jpg"
["FileDateTime"]=>
int(%d)
["FileSize"]=>
int(9976)
["FileType"]=>
int(2)
["MimeType"]=>
string(10) "image/jpeg"
["SectionsFound"]=>
string(4) "IFD0"
["COMPUTED"]=>
array(5) {
["html"]=>
string(24) "width="386" height="488""
["Height"]=>
int(488)
["Width"]=>
int(386)
["IsColor"]=>
int(1)
["ByteOrderMotorola"]=>
int(0)
}
}