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