]> granicus.if.org Git - php/commitdiff
Fix typo and don't use 'a' as an invalid filename since it is the default
authorRasmus Lerdorf <rasmus@php.net>
Sat, 12 Nov 2011 18:46:04 +0000 (18:46 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sat, 12 Nov 2011 18:46:04 +0000 (18:46 +0000)
gcc binary filename and is thus not unlikely to be left lying around in the
build dir which cause these tests to fail

ext/standard/tests/strings/md5_file.phpt
ext/standard/tests/strings/sha1_file.phpt

index e5d015cdd20dec84cbd0d0c0985baca26f66d2bf..777140957c7ab7aa4e97881775990bec132a1eda 100644 (file)
Binary files a/ext/standard/tests/strings/md5_file.phpt and b/ext/standard/tests/strings/md5_file.phpt differ
index 574d384c2058ccc2183a7aa0ddd7172cf022e293..fafe106d51e3f6b536f7252be1c371f1d569530f 100644 (file)
@@ -38,7 +38,7 @@ echo "\n-- No filename --\n";
 var_dump( sha1_file("") );
 
 echo "\n-- invalid filename --\n";
-var_dump( sha1_file("a") );
+var_dump( sha1_file("rewncwYcn89q") );
 
 echo "\n-- Scalar value as filename --\n";
 var_dump( sha1_file(12) );
@@ -82,7 +82,7 @@ bool(false)
 
 -- invalid filename --
 
-Warning: sha1_file(a): failed to open stream: No such file or directory in %s on line %d
+Warning: sha1_file(rewncwYcn89q): failed to open stream: No such file or directory in %s on line %d
 bool(false)
 
 -- Scalar value as filename --