Searched refs:hash_file (Results 1 – 8 of 8) sorted by relevance
/PHP-8.3/ext/hash/tests/ |
H A D | hash_file_basic1.phpt | 2 Hash: hash_file() function : basic functionality 6 echo "*** Testing hash_file() : basic functionality ***\n"; 8 $file = __DIR__ . "hash_file.txt"; 28 echo "crc32: " . hash_file('crc32', $file) . "\n"; 29 echo "gost: " . hash_file('gost', $file). "\n"; 31 echo "md2: " . hash_file('md2', $file). "\n"; 32 echo "md4: " . hash_file('md4', $file). "\n"; 33 echo "md5: " . hash_file('md5', $file). "\n"; 38 echo "sha1: " . hash_file('sha1', $file). "\n"; 39 echo "sha256: " . hash_file('sha256', $file). "\n"; [all …]
|
H A D | hash_file_error.phpt | 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 [all …]
|
H A D | hash_file_basic.phpt | 2 Hash: hash_file() function : basic functionality 7 echo "*** Testing hash_file() : basic functionality ***\n"; 13 var_dump( hash_file( 'md5', $filename ) ); 14 var_dump( hash_file( 'sha1', $filename ) ); 15 var_dump( hash_file( 'sha256', $filename ) ); 16 var_dump( hash_file( 'sha512', $filename ) ); 18 var_dump( base64_encode( hash_file( 'md5', $filename, true ) ) ); 29 *** Testing hash_file() : basic functionality ***
|
H A D | hash_hmac_file_error.phpt | 8 $file = __DIR__ . "hash_file.txt";
|
H A D | hash_hmac_basic.phpt | 2 Hash: hash_file() function : basic functionality
|
/PHP-8.3/ext/hash/ |
H A D | hash.stub.php | 15 function hash_file(string $algo, string $filename, bool $binary = false, array $options = []): stri… function
|
H A D | hash_arginfo.h | 138 ZEND_FUNCTION(hash_file); 174 ZEND_FE(hash_file, arginfo_hash_file)
|
H A D | hash.c | 445 PHP_FUNCTION(hash_file) in PHP_FUNCTION() argument
|
Completed in 25 milliseconds