]> granicus.if.org Git - php/blob
365033b689
[php] /
1 --TEST--
2 Test posix_getpwuid() 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_getpwuid(long uid)
10  * Description: User database access (POSIX.1, 9.2.2)
11  * Source code: ext/posix/posix.c
12  * Alias to functions:
13  */
14
15 echo "*** Testing posix_getpwuid() : error conditions ***\n";
16
17 echo "\n-- Testing posix_getpwuid() function negative uid --\n";
18 $uid = -99;
19 var_dump( posix_getpwuid($uid) );
20
21 echo "Done";
22 ?>
23 --EXPECTF--
24 *** Testing posix_getpwuid() : error conditions ***
25
26 -- Testing posix_getpwuid() function negative uid --
27 bool(false)
28 Done