com php-src: more fileinfo test fixes: ext/fileinfo/tests/finfo _file_basic.phpt ext/fileinfo/tests/finfo_file_rege x.phpt

From: Date: Thu, 24 Nov 2016 13:48:33 +0000
Subject: com php-src: more fileinfo test fixes: ext/fileinfo/tests/finfo _file_basic.phpt ext/fileinfo/tests/finfo_file_rege x.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-96016@lists.php.net to get a copy of this message
Commit: 3ef069d26c7863b059325b9a0d26cac31c97fe4b Author: Anatol Belski <ab@php.net> Thu, 24 Nov 2016 14:48:33 +0100 Parents: c62b73269658afd03cb1c972c475850b9878120f Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3ef069d26c7863b059325b9a0d26cac31c97fe4b Log: more fileinfo test fixes Note the behavior change, FILEINFO_CONTINUE will now always append a string \012-. I'm leaving this as is for now, as this is the behavior change in libmagic. Changed paths: M ext/fileinfo/tests/finfo_file_basic.phpt M ext/fileinfo/tests/finfo_file_regex.phpt Diff: diff --git a/ext/fileinfo/tests/finfo_file_basic.phpt b/ext/fileinfo/tests/finfo_file_basic.phpt index 84cf80d..c99695e 100644 --- a/ext/fileinfo/tests/finfo_file_basic.phpt +++ b/ext/fileinfo/tests/finfo_file_basic.phpt @@ -26,8 +26,8 @@ var_dump( finfo_file( $finfo, $magicFile.chr(0).$magicFile) ); --EXPECTF-- *** Testing finfo_file() : basic functionality *** string(28) "text/x-php; charset=us-ascii" -string(22) "PHP script, ASCII text" -string(25) "text/plain; charset=utf-8" +string(32) "PHP script, ASCII text\012- data" +string(40) "application/octet-stream; charset=binary" Warning: finfo_file(): Invalid path in %s%efinfo_file_basic.php on line %d bool(false) diff --git a/ext/fileinfo/tests/finfo_file_regex.phpt b/ext/fileinfo/tests/finfo_file_regex.phpt index ee582b5..407280c 100644 --- a/ext/fileinfo/tests/finfo_file_regex.phpt +++ b/ext/fileinfo/tests/finfo_file_regex.phpt @@ -25,5 +25,5 @@ var_dump( finfo_file( $finfo, $file, FILEINFO_CONTINUE ) ); --EXPECTF-- *** Testing finfo_file() : regex rules *** string(28) "text/plain; charset=us-ascii" -string(30) "awk or perl script, ASCII text" +string(40) "awk or perl script, ASCII text\012- data" ===DONE===

« previous php.cvs (#96016) next »