mirror of
https://github.com/php/php-src.git
synced 2024-12-16 13:26:19 +08:00
24 lines
444 B
PHP
24 lines
444 B
PHP
--TEST--
|
|
Test return values of posix_getgrgid() on MacOSX.
|
|
--CREDITS--
|
|
Till Klampaeckel, till@php.net
|
|
TestFest Berlin 2009
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('posix')) {
|
|
die('SKIP The posix extension is not loaded.');
|
|
}
|
|
if (strtolower(PHP_OS) != 'darwin') {
|
|
die('SKIP This test requires MacOSX/Darwin.');
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$grp = posix_getgrgid(-1);
|
|
var_dump($grp['name']);
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
string(7) "nogroup"
|
|
===DONE===
|