summaryrefslogtreecommitdiff
path: root/ext/posix/tests/posix_getpwuid_basic.phpt
blob: 1bcd59d0e63fa94378b2d78389c89ad9bd532b8d (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
29
30
--TEST--
Test posix_getpwuid() function : basic functionality 
--SKIPIF--
<?php 
	if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); 
?>
--FILE--
<?php 
  echo "Basic test of POSIX getpwuid\n";
   
  	
  $pwuid = posix_getpwuid(posix_getuid());
  
  print_r($pwuid);
  
?>
===DONE====
--EXPECTREGEX--
Basic test of POSIX getpwuid
Array
\(
    \[name\] => [^\r\n]+
    \[passwd\] => [^\r\n]+
    \[uid\] => [0-9]+
    \[gid\] => [0-9]+
    \[gecos\] => [^\r\n]*
    \[dir\] => [^\r\n]+
    \[shell\] => [^\r\n]+
\)
===DONE====