xref: /PHP-8.0/ext/fileinfo/tests/bug69320.phpt (revision c5401854)
1--TEST--
2Bug #69320 libmagic crash when running laravel tests
3--SKIPIF--
4<?php require_once(__DIR__ . '/skipif.inc'); ?>
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