diff options
-rw-r--r-- | ext/fileinfo/tests/bug69320.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/fileinfo/tests/bug69320.phpt b/ext/fileinfo/tests/bug69320.phpt new file mode 100644 index 0000000000..9b1c2762b1 --- /dev/null +++ b/ext/fileinfo/tests/bug69320.phpt @@ -0,0 +1,20 @@ +--TEST-- +Bug #69320 libmagic crash when running laravel tests +--SKIPIF-- +<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?> +--FILE-- +<?php + +$fname = dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug69320.txt"; +file_put_contents($fname, "foo"); +var_dump(finfo_file(finfo_open(FILEINFO_MIME_TYPE), $fname)); + +?> +--CLEAN-- +<?php + $fname = dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug69320.txt"; + unling($fname); +?> +--EXPECTF-- +string(10) "text/plain" + |