Lines Matching refs:sha1
2 Test sha1() function : error conditions
7 /* Prototype: string sha1 ( string $str [, bool $raw_output ] )
8 * Description: Calculate the sha1 hash of a string
11 echo "*** Testing sha1() : error conditions ***\n";
13 echo "\n-- Testing sha1() function with no arguments --\n";
14 var_dump( sha1() );
16 echo "\n-- Testing sha1() function with more than expected no. of arguments --\n";
18 var_dump( sha1("Hello World", true, $extra_arg) );
24 *** Testing sha1() : error conditions ***
26 -- Testing sha1() function with no arguments --
28 Warning: sha1() expects at least 1 parameter, 0 given in %s on line %d
31 -- Testing sha1() function with more than expected no. of arguments --
33 Warning: sha1() expects at most 2 parameters, 3 given in %s on line %d