1--TEST-- 2Test return values of posix_getgrgid() on MacOSX. 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 requires MacOSX/Darwin.'); 13} 14?> 15--FILE-- 16<?php 17$grp = posix_getgrgid(-1); 18var_dump($grp['name']); 19?> 20===DONE=== 21--EXPECT-- 22string(7) "nogroup" 23===DONE=== 24