1--TEST--
2Test posix_getpwuid() function : basic functionality
3--SKIPIF--
4<?php
5    if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
6?>
7--FILE--
8<?php
9  echo "Basic test of POSIX getpwuid\n";
10
11
12  $pwuid = posix_getpwuid(posix_getuid());
13
14  print_r($pwuid);
15
16?>
17===DONE====
18--EXPECTREGEX--
19Basic test of POSIX getpwuid
20Array
21\(
22    \[name\] => [^\r\n]+
23    \[passwd\] => [^\r\n]+
24    \[uid\] => [0-9]+
25    \[gid\] => [0-9]+
26    \[gecos\] => [^\r\n]*
27    \[dir\] => [^\r\n]+
28    \[shell\] => [^\r\n]+
29\)
30===DONE====
31