1--TEST-- 2Test posix_kill() function : error conditions 3--EXTENSIONS-- 4posix 5--FILE-- 6<?php 7echo "*** Testing posix_kill() : error conditions ***\n"; 8 9 10echo "\n-- Testing posix_kill() function with invalid signal --\n"; 11$pid = posix_getpid(); 12$sig = 999; 13var_dump( posix_kill($pid, 999) ); 14 15echo "\n-- Testing posix_kill() function with negative pid --\n"; 16$pid = -999; 17$sig = 9; 18var_dump( posix_kill($pid, 999) ); 19 20echo "Done"; 21?> 22--EXPECT-- 23*** Testing posix_kill() : error conditions *** 24 25-- Testing posix_kill() function with invalid signal -- 26bool(false) 27 28-- Testing posix_kill() function with negative pid -- 29bool(false) 30Done 31