1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
--TEST--
Test posix_getpgid() function : error conditions
--EXTENSIONS--
posix
--SKIPIF--
<?php
if (!function_exists("posix_getpgid")) {
print "skip - posix_getpgid() does not exist";
}
?>
--FILE--
<?php
echo "*** Testing posix_getpgid() : error conditions ***\n";
echo "\n-- Testing posix_getpgid() with negative pid --\n";
$pid = -99;
var_dump( posix_getpgid($pid) );
echo "Done";
?>
--EXPECT--
*** Testing posix_getpgid() : error conditions ***
-- Testing posix_getpgid() with negative pid --
bool(false)
Done
|