Home
last modified time | relevance | path

Searched refs:hash_file (Results 1 – 8 of 8) sorted by last modified time

/php-src/ext/hash/
H A Dhash.stub.php15 function hash_file(string $algo, string $filename, bool $binary = false, array $options = []): stri… function
H A Dhash_arginfo.h137 ZEND_FUNCTION(hash_file);
172 ZEND_FE(hash_file, arginfo_hash_file)
H A Dhash.c445 PHP_FUNCTION(hash_file) in PHP_FUNCTION() argument
/php-src/ext/hash/tests/
H A Dhash_file_basic1.phpt2 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 Dhash_file_basic.phpt2 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 Dhash_file_error.phpt2 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 Dhash_hmac_basic.phpt2 Hash: hash_file() function : basic functionality
H A Dhash_hmac_file_error.phpt8 $file = __DIR__ . "hash_file.txt";

Completed in 19 milliseconds