1--TEST--
2Test return values of posix_getgrgid() on MacOSX.
3--CREDITS--
4Till Klampaeckel, till@php.net
5TestFest Berlin 2009
6--EXTENSIONS--
7posix
8--SKIPIF--
9<?php
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--EXPECT--
21string(7) "nogroup"
22