Lines Matching refs:hash_hmac_file

2 Test hash_hmac_file() function : basic functionality 
8 /* Prototype : string hash_hmac_file ( string algo, string filename, string key [, bool raw_output…
19 echo "\n-- Testing hash_hmac_file() function with less than expected no. of arguments --\n";
20 var_dump(hash_hmac_file());
21 var_dump(hash_hmac_file('crc32'));
22 var_dump(hash_hmac_file('crc32', $file));
24 echo "\n-- Testing hash_hmac_file() function with more than expected no. of arguments --\n";
26 hash_hmac_file('crc32', $file, $key, TRUE, $extra_arg);
28 echo "\n-- Testing hash_hmac_file() function with invalid hash algorithm --\n";
29 hash_hmac_file('foo', $file, $key, TRUE);
31 echo "\n-- Testing hash_hmac_file() function with bad path --\n";
32 hash_hmac_file('crc32', $file.chr(0).$file, $key, TRUE);
39 -- Testing hash_hmac_file() function with less than expected no. of arguments --
41 Warning: hash_hmac_file() expects at least 3 parameters, 0 given in %s on line %d
44 Warning: hash_hmac_file() expects at least 3 parameters, 1 given in %s on line %d
47 Warning: hash_hmac_file() expects at least 3 parameters, 2 given in %s on line %d
50 -- Testing hash_hmac_file() function with more than expected no. of arguments --
52 Warning: hash_hmac_file() expects at most 4 parameters, 5 given in %s on line %d
54 -- Testing hash_hmac_file() function with invalid hash algorithm --
56 Warning: hash_hmac_file(): Unknown hashing algorithm: foo in %s on line %d
58 -- Testing hash_hmac_file() function with bad path --
60 Warning: hash_hmac_file(): Invalid path in %s on line %d