1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 22:41:20 +02:00
Files
archived-php-src/ext/exif/tests/bug79046.phpt
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

36 lines
622 B
PHP

--TEST--
Bug #79046: NaN to int cast undefined behavior in exif
--EXTENSIONS--
exif
--FILE--
<?php
var_dump(exif_read_data('data://image/tiff;base64,TU0AKgAAAA7//wAAANUAAQERAAsAAAABAAD4fwAAAA4A'));
?>
--EXPECT--
array(8) {
["FileDateTime"]=>
int(0)
["FileSize"]=>
int(33)
["FileType"]=>
int(8)
["MimeType"]=>
string(10) "image/tiff"
["SectionsFound"]=>
string(24) "ANY_TAG, IFD0, THUMBNAIL"
["COMPUTED"]=>
array(2) {
["IsColor"]=>
int(0)
["ByteOrderMotorola"]=>
int(1)
}
["StripOffsets"]=>
float(NAN)
["THUMBNAIL"]=>
array(1) {
["StripOffsets"]=>
float(NAN)
}
}