Lines Matching refs:hash_file
2 Hash: hash_file() function : error conditions
7 echo "*** Testing hash_file() : error conditions ***\n";
14 // hash_file() error tests
15 echo "\n-- Testing hash_file() function with an unknown algorithm --\n";
17 hash_file('foobar', $filename);
22 echo "\n-- Testing hash_file() function with a non-existent file --\n";
23 var_dump(hash_file('md5', 'nonexistent.txt'));
34 *** Testing hash_file() : error conditions ***
36 -- Testing hash_file() function with an unknown algorithm --
37 hash_file(): Argument #1 ($algo) must be a valid hashing algorithm
39 -- Testing hash_file() function with a non-existent file --
41 Warning: hash_file(%s): Failed to open stream: No such file or directory in %s on line %d