mirror of
https://github.com/php/php-src.git
synced 2025-01-06 19:03:31 +08:00
- Fix tests
This commit is contained in:
parent
868b808f4c
commit
f417c732a9
@ -69,15 +69,15 @@ Warning: file_get_contents( ): failed to open stream: No such file or directory
|
||||
bool(false)
|
||||
-- Iteration 6 --
|
||||
|
||||
Warning: file_get_contents(): Filename cannot be empty in %s on line %d
|
||||
bool(false)
|
||||
Warning: file_get_contents() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
-- Iteration 7 --
|
||||
|
||||
Warning: file_get_contents() expects parameter 1 to be string, array given in %s on line %d
|
||||
Warning: file_get_contents() expects parameter 1 to be a valid path, array given in %s on line %d
|
||||
NULL
|
||||
-- Iteration 8 --
|
||||
|
||||
Warning: file_get_contents(/no/such/file/dir): failed to open stream: %s in %s on line %d
|
||||
Warning: file_get_contents(/no/such/file/dir): failed to open stream: No such file or directory in %s on line %d
|
||||
bool(false)
|
||||
-- Iteration 9 --
|
||||
|
||||
|
Binary file not shown.
@ -145,19 +145,19 @@ Error: 2 - file(0.5): failed to open stream: No such file or directory, %s(%d)
|
||||
bool(false)
|
||||
|
||||
--empty array--
|
||||
Error: 2 - file() expects parameter 1 to be string, array given, %s(%d)
|
||||
Error: 2 - file() expects parameter 1 to be a valid path, array given, %s(%d)
|
||||
NULL
|
||||
|
||||
--int indexed array--
|
||||
Error: 2 - file() expects parameter 1 to be string, array given, %s(%d)
|
||||
Error: 2 - file() expects parameter 1 to be a valid path, array given, %s(%d)
|
||||
NULL
|
||||
|
||||
--associative array--
|
||||
Error: 2 - file() expects parameter 1 to be string, array given, %s(%d)
|
||||
Error: 2 - file() expects parameter 1 to be a valid path, array given, %s(%d)
|
||||
NULL
|
||||
|
||||
--nested arrays--
|
||||
Error: 2 - file() expects parameter 1 to be string, array given, %s(%d)
|
||||
Error: 2 - file() expects parameter 1 to be a valid path, array given, %s(%d)
|
||||
NULL
|
||||
|
||||
--uppercase NULL--
|
||||
@ -197,7 +197,7 @@ Error: 2 - file(Class A object): failed to open stream: %s, %s(%d)
|
||||
bool(false)
|
||||
|
||||
--instance of classWithoutToString--
|
||||
Error: 2 - file() expects parameter 1 to be string, object given, %s(%d)
|
||||
Error: 2 - file() expects parameter 1 to be a valid path, object given, %s(%d)
|
||||
NULL
|
||||
|
||||
--undefined var--
|
||||
|
@ -36,13 +36,13 @@ echo "\n*** Done ***\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
*** Testing error conditions for fnmatch() ***
|
||||
Warning: fnmatch() expects parameter 1 to be string, array given in %s on line %d%d
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, array given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be string, resource given in %s on line %d%d
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, resource given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be string, object given in %s on line %d%d
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, object given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects at least 2 parameters, 1 given in %s on line %d%d
|
||||
|
@ -134,7 +134,7 @@ match($null_arr, $null_arr);
|
||||
|
||||
echo "\n*** Done ***\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECTF--
|
||||
*** Testing fnmatch() with file and various patterns ***
|
||||
-- Iteration 0 --
|
||||
bool(true)
|
||||
@ -183,9 +183,13 @@ bool(false)
|
||||
-- Iteration 22 --
|
||||
bool(false)
|
||||
-- Iteration 23 --
|
||||
bool(false)
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
-- Iteration 24 --
|
||||
bool(false)
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
-- Iteration 25 --
|
||||
bool(false)
|
||||
-- Iteration 26 --
|
||||
@ -259,44 +263,84 @@ bool(true)
|
||||
--- With Strings ---
|
||||
-- Iteration 0 --
|
||||
bool(true)
|
||||
|
||||
Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(false)
|
||||
|
||||
Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
bool(false)
|
||||
bool(true)
|
||||
-- Iteration 1 --
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(true)
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
-- Iteration 2 --
|
||||
bool(true)
|
||||
|
||||
Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(false)
|
||||
|
||||
Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
bool(false)
|
||||
bool(true)
|
||||
-- Iteration 3 --
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(true)
|
||||
bool(false)
|
||||
bool(false)
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
-- Iteration 4 --
|
||||
bool(false)
|
||||
|
||||
Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
||||
|
||||
Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
bool(true)
|
||||
bool(false)
|
||||
-- Iteration 5 --
|
||||
bool(true)
|
||||
|
||||
Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(false)
|
||||
|
||||
Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
bool(false)
|
||||
bool(true)
|
||||
|
||||
@ -397,42 +441,64 @@ bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
|
||||
Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
bool(false)
|
||||
bool(false)
|
||||
-- Iteration 1 --
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
|
||||
Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
bool(false)
|
||||
bool(false)
|
||||
-- Iteration 2 --
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
|
||||
Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
bool(false)
|
||||
bool(false)
|
||||
-- Iteration 3 --
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(false)
|
||||
bool(false)
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
|
||||
Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
-- Iteration 4 --
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
||||
|
||||
Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
bool(true)
|
||||
bool(false)
|
||||
-- Iteration 5 --
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
||||
|
||||
Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d
|
||||
NULL
|
||||
bool(false)
|
||||
bool(true)
|
||||
|
||||
|
@ -64,13 +64,17 @@ Warning: rmdir(%s/mkdir_variation2/): %s on line %d
|
||||
bool(false)
|
||||
|
||||
*** Testing mkdir() and rmdir() for binary safe functionality ***
|
||||
bool(true)
|
||||
bool(true)
|
||||
|
||||
Warning: mkdir() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
bool(false)
|
||||
|
||||
Warning: rmdir(%s): No such file or directory in %s on line %d
|
||||
bool(false)
|
||||
|
||||
*** Testing mkdir() with miscelleneous input ***
|
||||
bool(true)
|
||||
|
||||
Warning: mkdir(): Permission denied in %sfile/mkdir_rmdir_variation2.php on line %d
|
||||
Warning: mkdir(): Permission denied in %s on line %d
|
||||
bool(false)
|
||||
bool(true)
|
||||
Done
|
||||
|
Binary file not shown.
@ -99,19 +99,21 @@ Warning: rename( ,%s/renameVar13/afile.tmp): No such file or directory in %s on
|
||||
bool(false)
|
||||
-- testing '%s' --
|
||||
|
||||
Warning: rename(%s/renameVar13/afile.tmp,): %s in %s on line %d
|
||||
Warning: rename() %s in %s on line %d
|
||||
bool(false)
|
||||
|
||||
Warning: rename(,%s/renameVar13/afile.tmp): %s in %s on line %d
|
||||
Warning: file_exists() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
|
||||
Warning: rename() expects parameter 1 to be a valid path, string given in %s on line %d
|
||||
bool(false)
|
||||
-- testing 'Array' --
|
||||
|
||||
Warning: rename() expects parameter 2 to be string, array given in %s on line %d
|
||||
Warning: rename() expects parameter 2 to be a valid path, array given in %s on line %d
|
||||
bool(false)
|
||||
|
||||
Warning: file_exists() expects parameter 1 to be string, array given in %s on line %d
|
||||
Warning: file_exists() expects parameter 1 to be a valid path, array given in %s on line %d
|
||||
|
||||
Warning: rename() expects parameter 1 to be string, array given in %s on line %d
|
||||
Warning: rename() expects parameter 1 to be a valid path, array given in %s on line %d
|
||||
bool(false)
|
||||
-- testing '/no/such/file/dir' --
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user