1--TEST-- 2Test parameters on posix_getgrgid(). 3--CREDITS-- 4Till Klampaeckel, till@php.net 5TestFest Berlin 2009 6--SKIPIF-- 7<?php 8if (!extension_loaded('posix')) { 9 die('SKIP The posix extension is not loaded.'); 10} 11if (strtolower(PHP_OS) == 'darwin') { 12 die('SKIP This test doesn\'t run on MacOSX/Darwin.'); 13} 14--FILE-- 15<?php 16$gid = PHP_INT_MAX; // obscene high gid 17var_dump(posix_getgrgid($gid)); 18var_dump(posix_getgrgid(-1)); 19var_dump(posix_getgrgid()); 20?> 21===DONE=== 22--EXPECTF-- 23bool(false) 24bool(false) 25 26Warning: posix_getgrgid() expects exactly 1 parameter, 0 given in %s on line %d 27bool(false) 28===DONE=== 29