mirror of
https://github.com/php/php-src.git
synced 2026-04-28 02:33:17 +02:00
bd9f4fa676
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
15 lines
296 B
PHP
15 lines
296 B
PHP
--TEST--
|
|
Bug #79756 (finfo_file crash (FILEINFO_MIME))
|
|
--EXTENSIONS--
|
|
fileinfo
|
|
--FILE--
|
|
<?php
|
|
$filename = __DIR__ . '/bug79756.xls';
|
|
$finfo = finfo_open(FILEINFO_MIME);
|
|
$mime = finfo_file($finfo, $filename);
|
|
finfo_close($finfo);
|
|
echo $mime;
|
|
?>
|
|
--EXPECT--
|
|
application/vnd.ms-excel; charset=binary
|