Searched refs:hash_file (Results 1 – 8 of 8) sorted by relevance
/PHP-7.3/ext/hash/tests/ |
H A D | hash_file_basic1.phpt | 2 Test hash_file() function : basic functionality 16 $file = dirname(__FILE__) . "hash_file.txt"; 36 echo "crc32: " . hash_file('crc32', $file) . "\n"; 37 echo "gost: " . hash_file('gost', $file). "\n"; 39 echo "md2: " . hash_file('md2', $file). "\n"; 40 echo "md4: " . hash_file('md4', $file). "\n"; 41 echo "md5: " . hash_file('md5', $file). "\n"; 46 echo "sha1: " . hash_file('sha1', $file). "\n"; 47 echo "sha256: " . hash_file('sha256', $file). "\n"; 48 echo "sha384: " . hash_file('sha384', $file). "\n"; [all …]
|
H A D | hash_file_error.phpt | 2 Test hash_file() function : error conditions 15 echo "*** Testing hash_file() : error conditions ***\n"; 22 // hash_file() error tests 24 var_dump( hash_file( 'foobar', $filename ) ); 27 var_dump( hash_file( 'md5', 'nonexistent.txt' ) ); 30 var_dump( hash_file( 'md5' ) ); 34 var_dump( hash_file( 'md5', $filename, false, $extra_arg ) ); 46 *** Testing hash_file() : error conditions *** 48 -- Testing hash_file() function with an unknown algorithm -- 50 Warning: hash_file(): Unknown hashing algorithm: %s in %s on line %d [all …]
|
H A D | hash_file_basic.phpt | 2 Test hash_file() function : basic functionality 9 /* Prototype : string hash_file(string algo, string filename[, bool raw_output = false]) 15 echo "*** Testing hash_file() : basic functionality ***\n"; 21 var_dump( hash_file( 'md5', $filename ) ); 22 var_dump( hash_file( 'sha1', $filename ) ); 23 var_dump( hash_file( 'sha256', $filename ) ); 24 var_dump( hash_file( 'sha512', $filename ) ); 26 var_dump( base64_encode( hash_file( 'md5', $filename, true ) ) ); 38 *** Testing hash_file() : basic functionality ***
|
H A D | hash_hmac_basic.phpt | 2 Test hash_file() function : basic functionality
|
H A D | hash_hmac_file_error.phpt | 16 $file = dirname(__FILE__) . "hash_file.txt";
|
/PHP-7.3/ext/hash/ |
H A D | README | 6 $digest = hash_file($algoname, $filename); 18 hash(), hash_file(), and hash_final() each support an optional boolean parameter $raw_output which …
|
H A D | php_hash.h | 136 PHP_FUNCTION(hash_file);
|
H A D | hash.c | 191 PHP_FUNCTION(hash_file) in PHP_FUNCTION() argument 1435 PHP_FE(hash_file, arginfo_hash_file)
|
Completed in 18 milliseconds