Lines Matching refs:strncmp
2 Test strncmp() function : error conditions
5 /* Prototype : int strncmp ( string $str1, string $str2, int $len );
10 /* Test strncmp() function with more/less number of args and invalid args */
12 echo "*** Testing strncmp() function: error conditions ***\n";
18 var_dump( strncmp() ); //Zero argument
19 var_dump( strncmp($str1) ); //One argument, less than expected no. of args
20 var_dump( strncmp($str1, $str2) ); //Two arguments, less than expected no. of args
21 var_dump( strncmp($str1, $str2, $len, $extra_arg) ); //Four arguments, greater than expected no. o…
25 var_dump( strncmp($str1, $str2, $len) );
29 *** Testing strncmp() function: error conditions ***
31 Warning: strncmp() expects exactly 3 parameters, 0 given in %s on line %d
34 Warning: strncmp() expects exactly 3 parameters, 1 given in %s on line %d
37 Warning: strncmp() expects exactly 3 parameters, 2 given in %s on line %d
40 Warning: strncmp() expects exactly 3 parameters, 4 given in %s on line %d