xref: /PHP-8.1/ext/fileinfo/tests/bug69320.phpt (revision bd9f4fa6)
1--TEST--
2Bug #69320 libmagic crash when running laravel tests
3--EXTENSIONS--
4fileinfo
5--FILE--
6<?php
7
8$fname = __DIR__ . DIRECTORY_SEPARATOR . "bug69320.txt";
9file_put_contents($fname, "foo");
10var_dump(finfo_file(finfo_open(FILEINFO_MIME_TYPE), $fname));
11
12?>
13--CLEAN--
14<?php
15    $fname = __DIR__ . DIRECTORY_SEPARATOR . "bug69320.txt";
16    unlink($fname);
17?>
18--EXPECT--
19string(10) "text/plain"
20