com php-src: fix tests: ext/fileinfo/tests/bug61964-mb.phpt ext/fileinfo/tests/bug61964.phpt ext/fileinfo/tests/cve-2014-1943-mb.phpt
ext/fileinfo/tests/cve-2014-1943.phpt
| From: | Anatol Belski | Date: | Thu, 24 Nov 2016 13:36:49 +0000 |
| Subject: | com php-src: fix tests: ext/fileinfo/tests/bug61964-mb.phpt ext/fileinfo/tests/bug61964.phpt ext/fileinfo/tests/cve-2014-1943-mb.phpt ext/fileinfo/tests/cve-2014-1943.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96014@lists.php.net to get a copy of this message | ||
Commit: c62b73269658afd03cb1c972c475850b9878120f
Author: Anatol Belski <ab@php.net> Thu, 24 Nov 2016 14:36:49 +0100
Parents: 411e97c72d6a200930a7edc48a031a2ca64c0e0c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c62b73269658afd03cb1c972c475850b9878120f
Log:
fix tests
Changed paths:
M ext/fileinfo/tests/bug61964-mb.phpt
M ext/fileinfo/tests/bug61964.phpt
M ext/fileinfo/tests/cve-2014-1943-mb.phpt
M ext/fileinfo/tests/cve-2014-1943.phpt
Diff:
diff --git a/ext/fileinfo/tests/bug61964-mb.phpt b/ext/fileinfo/tests/bug61964-mb.phpt
index 1b1c95e..6dc3b93 100644
--- a/ext/fileinfo/tests/bug61964-mb.phpt
+++ b/ext/fileinfo/tests/bug61964-mb.phpt
@@ -54,20 +54,12 @@ Notice: finfo_open(): Warning: offset `string' invalid in %sbug61964-mb.php
on l
Notice: finfo_open(): Warning: offset ` Core' invalid in %sbug61964-mb.php on line %d
-Notice: finfo_open(): Warning: type `Core' invalid in %sbug61964-mb.php on line %d
-
Notice: finfo_open(): Warning: offset ` Me' invalid in %sbug61964-mb.php on line %d
-Notice: finfo_open(): Warning: type `Me' invalid in %sbug61964-mb.php on line %d
-
Notice: finfo_open(): Warning: offset `a' invalid in %sbug61964-mb.php on line %d
-Notice: finfo_open(): Warning: type `a' invalid in %sbug61964-mb.php on line %d
-
Notice: finfo_open(): Warning: offset `b' invalid in %sbug61964-mb.php on line %d
-Notice: finfo_open(): Warning: type `b' invalid in %sbug61964-mb.php on line %d
-
Warning: finfo_open(): Failed to load magic database at '%stest-folder'. in
%sbug61964-mb.php on line %d
DONE: testing dir with files
===DONE===
diff --git a/ext/fileinfo/tests/bug61964.phpt b/ext/fileinfo/tests/bug61964.phpt
index efb0b2c..03f7287 100644
--- a/ext/fileinfo/tests/bug61964.phpt
+++ b/ext/fileinfo/tests/bug61964.phpt
@@ -54,20 +54,12 @@ Notice: finfo_open(): Warning: offset `string' invalid in %sbug61964.php on
line
Notice: finfo_open(): Warning: offset ` Core' invalid in %sbug61964.php on line %d
-Notice: finfo_open(): Warning: type `Core' invalid in %sbug61964.php on line %d
-
Notice: finfo_open(): Warning: offset ` Me' invalid in %sbug61964.php on line %d
-Notice: finfo_open(): Warning: type `Me' invalid in %sbug61964.php on line %d
-
Notice: finfo_open(): Warning: offset `a' invalid in %sbug61964.php on line %d
-Notice: finfo_open(): Warning: type `a' invalid in %sbug61964.php on line %d
-
Notice: finfo_open(): Warning: offset `b' invalid in %sbug61964.php on line %d
-Notice: finfo_open(): Warning: type `b' invalid in %sbug61964.php on line %d
-
Warning: finfo_open(): Failed to load magic database at '%stest-folder'. in
%sbug61964.php on line %d
DONE: testing dir with files
===DONE===
diff --git a/ext/fileinfo/tests/cve-2014-1943-mb.phpt b/ext/fileinfo/tests/cve-2014-1943-mb.phpt
index 9395188..b5cab77 100644
--- a/ext/fileinfo/tests/cve-2014-1943-mb.phpt
+++ b/ext/fileinfo/tests/cve-2014-1943-mb.phpt
@@ -34,6 +34,6 @@ Done
--EXPECTF--
string(%d) "%s"
-Warning: finfo_file(): Failed identify data 0:indirect recursion nesting (%d) exceeded in %s on
line %d
+Warning: finfo_file(): Failed identify data 0:indirect count (%d) exceeded in %s on line %d
bool(false)
Done
diff --git a/ext/fileinfo/tests/cve-2014-1943.phpt b/ext/fileinfo/tests/cve-2014-1943.phpt
index f4dddda..588c087 100644
--- a/ext/fileinfo/tests/cve-2014-1943.phpt
+++ b/ext/fileinfo/tests/cve-2014-1943.phpt
@@ -34,6 +34,6 @@ Done
--EXPECTF--
string(%d) "%s"
-Warning: finfo_file(): Failed identify data 0:indirect recursion nesting (%d) exceeded in %s on
line %d
+Warning: finfo_file(): Failed identify data 0:indirect count (%d) exceeded in %s on line %d
bool(false)
Done