1--TEST--
2Test posix_getpwnam() function : basic functionality
3--CREDITS--
4Rodrigo Prado de Jesus <royopa [at] gmail [dot] com>
5User Group: PHPSP #phptestfestbrasil
6--EXTENSIONS--
7posix
8--FILE--
9<?php
10  $uid = posix_geteuid();
11  $user = posix_getpwuid($uid);
12  $username = $user['name'];
13  $info = posix_getpwnam($username);
14  print_r($info);
15  var_dump($username == $info['name']);
16?>
17===DONE====
18--EXPECTF--
19Array
20(
21    [name] => %s
22    [passwd] => %S
23    [uid] => %d
24    [gid] => %d
25    [gecos] => %S
26    [dir] => %s
27    [shell] => %s
28)
29bool(true)
30===DONE====
31