Lines Matching refs:posix_kill
2 Test posix_kill() function : error conditions
9 /* Prototype : proto bool posix_kill(int pid, int sig)
16 echo "*** Testing posix_kill() : error conditions ***\n";
19 echo "\n-- Testing posix_kill() function with more than expected no. of arguments --\n";
23 var_dump( posix_kill($pid, $sig, $extra_arg) );
25 echo "\n-- Testing posix_kill() function with less than expected no. of arguments --\n";
27 var_dump( posix_kill($pid) );
29 echo "\n-- Testing posix_kill() function with invalid signal --\n";
32 var_dump( posix_kill($pid, 999) );
34 echo "\n-- Testing posix_kill() function with negative pid --\n";
37 var_dump( posix_kill($pid, 999) );
42 *** Testing posix_kill() : error conditions ***
44 -- Testing posix_kill() function with more than expected no. of arguments --
46 Warning: posix_kill() expects exactly 2 parameters, 3 given in %s on line %d
49 -- Testing posix_kill() function with less than expected no. of arguments --
51 Warning: posix_kill() expects exactly 2 parameters, 1 given in %s on line %d
54 -- Testing posix_kill() function with invalid signal --
57 -- Testing posix_kill() function with negative pid --