com php-src: added test for bug #69320: ext/fileinfo/tests/bug69320.phpt

From: Date: Sun, 29 Mar 2015 15:52:38 +0000
Subject: com php-src: added test for bug #69320: ext/fileinfo/tests/bug69320.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85925@lists.php.net to get a copy of this message
Commit: a935c02210cfef8216924cd0ba3c9f454e21cb41 Author: Anatol Belski <ab@php.net> Sun, 29 Mar 2015 17:52:38 +0200 Parents: aeabea4aa91af64db1fa1a592b92496fb5e293ba Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a935c02210cfef8216924cd0ba3c9f454e21cb41 Log: added test for bug #69320 Bugs: https://bugs.php.net/69320 Changed paths: A ext/fileinfo/tests/bug69320.phpt Diff: diff --git a/ext/fileinfo/tests/bug69320.phpt b/ext/fileinfo/tests/bug69320.phpt new file mode 100644 index 0000000..9b1c276 --- /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" +

« previous php.cvs (#85925) next »