Lines Matching refs:strncasecmp
2 Test strncasecmp() function : error conditions
5 /* Prototype : int strncasecmp ( string $str1, string $str2, int $len );
10 echo "*** Testing strncasecmp() function: error conditions ***\n";
16 echo "\n-- Testing strncasecmp() function with Zero arguments --";
17 var_dump( strncasecmp() );
19 echo "\n-- Testing strncasecmp() function with less than expected number of arguments --";
20 var_dump( strncasecmp($str1) );
21 var_dump( strncasecmp($str1, $str2) );
23 echo "\n-- Testing strncasecmp() function with more than expected number of arguments --";
24 var_dump( strncasecmp($str1, $str2, $len, $extra_arg) );
26 echo "\n-- Testing strncasecmp() function with invalid argument --";
28 var_dump( strncasecmp($str1, $str2, $len) );
32 *** Testing strncasecmp() function: error conditions ***
34 -- Testing strncasecmp() function with Zero arguments --
35 Warning: strncasecmp() expects exactly 3 parameters, 0 given in %s on line %d
38 -- Testing strncasecmp() function with less than expected number of arguments --
39 Warning: strncasecmp() expects exactly 3 parameters, 1 given in %s on line %d
42 Warning: strncasecmp() expects exactly 3 parameters, 2 given in %s on line %d
45 -- Testing strncasecmp() function with more than expected number of arguments --
46 Warning: strncasecmp() expects exactly 3 parameters, 4 given in %s on line %d
49 -- Testing strncasecmp() function with invalid argument --