Home
last modified time | relevance | path

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

/PHP-5.5/ext/hash/tests/
H A Dhash_file_error.phpt2 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 Dhash_hmac_basic.phpt2 Test hash_file() function : basic functionality
H A Dhash_hmac_file_error.phpt16 $file = dirname(__FILE__) . "hash_file.txt";
H A Dhash_file_basic.phpt2 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 Dhash_file_basic1.phpt2 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 …]
/PHP-5.5/ext/hash/
H A DREADME6 $digest = hash_file($algoname, $filename);
18 hash(), hash_file(), and hash_final() each support an optional boolean parameter $raw_output which …
H A Dhash.c201 PHP_FUNCTION(hash_file) in PHP_FUNCTION() argument
1190 PHP_FE(hash_file, arginfo_hash_file)
H A Dphp_hash.h121 PHP_FUNCTION(hash_file);

Completed in 59 milliseconds