blob: e9dbe2a6ce6f37a588897e72951000a3b7172c47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--TEST--
Test posix_getgrgid() function : error conditions
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
?>
--FILE--
<?php
/* Prototype : proto array posix_getgrgid(long gid)
* Description: Group database access (POSIX.1, 9.2.1)
* Source code: ext/posix/posix.c
* Alias to functions:
*/
echo "*** Testing posix_getgrgid() : error conditions ***\n";
echo "\n-- Testing posix_getgrgid() function with a negative group id --\n";
$gid = -999;
var_dump( posix_getgrgid($gid));
echo "Done";
?>
--EXPECTF--
*** Testing posix_getgrgid() : error conditions ***
-- Testing posix_getgrgid() function with a negative group id --
bool(false)
Done
|