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