Lines Matching refs:sha1_file
2 Test sha1_file() function with ASCII output and raw binary output. Based on ext/standard/tests/stri…
6 /* Prototype: string sha1_file( string filename[, bool raw_output] )
10 echo "*** Testing sha1_file() : basic functionality ***\n";
38 var_dump( sha1_file("") );
41 var_dump( sha1_file("rewncwYcn89q") );
44 var_dump( sha1_file(12) );
47 var_dump( sha1_file(NULL) );
50 var_dump ( sha1_file() );
53 var_dump ( sha1_file("EmptyFile.txt", true, NULL) );
56 var_dump( sha1_file("EmptyFile.txt") );
59 var_dump( bin2hex(sha1_file("EmptyFile.txt", true)));
62 var_dump( sha1_file("DataFile.txt") );
65 var_dump ( bin2hex(sha1_file("DataFile.txt", true)));
74 *** Testing sha1_file() : basic functionality ***
80 Warning: sha1_file(): Filename cannot be empty in %s on line %d
85 Warning: sha1_file(rewncwYcn89q): failed to open stream: No such file or directory in %s on line %d
90 Warning: sha1_file(12): failed to open stream: No such file or directory in %s on line %d
95 Warning: sha1_file(): Filename cannot be empty in %s on line %d
100 Warning: sha1_file() expects at least 1 parameter, 0 given in %s on line %d
105 Warning: sha1_file() expects at most 2 parameters, 3 given in %s on line %d