--TEST-- posix_setpgid() with wrong pid values --EXTENSIONS-- posix --SKIPIF-- --FILE-- getMessage(), PHP_EOL; } try { posix_setpgid(-2, 1); } catch (\ValueError $e) { echo $e->getMessage(), PHP_EOL; } try { posix_setpgid(1, PHP_INT_MAX); } catch (\ValueError $e) { echo $e->getMessage(), PHP_EOL; } try { posix_setpgid(1, -2); } catch (\ValueError $e) { echo $e->getMessage(), PHP_EOL; } ?> --EXPECTF-- posix_setpgid(): Argument #1 ($process_id) must be between 0 and %d posix_setpgid(): Argument #1 ($process_id) must be between 0 and %d posix_setpgid(): Argument #2 ($process_group_id) must be between 0 and %d posix_setpgid(): Argument #2 ($process_group_id) must be between 0 and %d