mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
This function is a noop and will be proposed for deprecation. This patch removes the useless calls.
27 lines
598 B
PHP
27 lines
598 B
PHP
--TEST--
|
|
Fileinfo run upstream tests
|
|
--EXTENSIONS--
|
|
fileinfo
|
|
--ENV--
|
|
TZ=UTC
|
|
--FILE--
|
|
<?php
|
|
|
|
$lst = glob(__DIR__ . DIRECTORY_SEPARATOR . "upstream/*.testfile");
|
|
|
|
foreach($lst as $p) {
|
|
$mp = dirname($p) . DIRECTORY_SEPARATOR . basename($p, ".testfile") . ".magic";
|
|
$tp = dirname($p) . DIRECTORY_SEPARATOR . basename($p, ".testfile") . ".result";
|
|
$finfo = finfo_open(FILEINFO_NONE, file_exists($mp) ? $mp : NULL);
|
|
$i = finfo_file( $finfo, $p);
|
|
$exp = trim(file_get_contents($tp));
|
|
if ($i !== $exp) {
|
|
echo "'$p' failed\nexp: '$exp'\ngot: '$i'\n";
|
|
}
|
|
}
|
|
|
|
echo "==DONE==";
|
|
?>
|
|
--EXPECT--
|
|
==DONE==
|