diff options
author | Anatol Belski <ab@php.net> | 2015-03-29 17:52:38 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-03-29 17:52:38 +0200 |
commit | a935c02210cfef8216924cd0ba3c9f454e21cb41 (patch) | |
tree | 702762de45eb4cd4eba3e88b56a68de0efad2d62 | |
parent | aeabea4aa91af64db1fa1a592b92496fb5e293ba (diff) | |
download | php-git-a935c02210cfef8216924cd0ba3c9f454e21cb41.tar.gz |
added test for bug #69320
-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" + |