Lines Matching refs:crc32
2 Test crc32() function : error conditions
11 /* Prototype : string crc32(string $str)
12 * Description: Calculate the crc32 polynomial of a string
13 * Source code: ext/standard/crc32.c
18 * Testing crc32() : error conditions
21 echo "*** Testing crc32() : error conditions ***\n";
24 echo "\n-- Testing crc32() function with Zero arguments --\n";
25 var_dump( crc32() );
27 //Test crc32 with one more than the expected number of arguments
28 echo "\n-- Testing crc32() function with more than expected no. of arguments --\n";
31 var_dump( crc32($str, $extra_arg) );
36 *** Testing crc32() : error conditions ***
38 -- Testing crc32() function with Zero arguments --
40 Warning: crc32() expects exactly 1 parameter, 0 given in %s on line %d
43 -- Testing crc32() function with more than expected no. of arguments --
45 Warning: crc32() expects exactly 1 parameter, 2 given in %s on line %d