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