php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61089 add getgrouplist function
Submitted: 2012-02-14 19:49 UTC Modified: -
Votes:3
Avg. Score:3.3 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: dab1818 at gmail dot com Assigned:
Status: Open Package: POSIX related
PHP Version: Irrelevant OS: un*x
Private report: No CVE-ID: None
 [2012-02-14 19:49 UTC] dab1818 at gmail dot com
Description:
------------
getgrouplist function is not posix standard, but available at most distros

Test script:
---------------
var_dump(posix_getgrouplist('root',0));

Expected result:
----------------
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon

array(3) {
  [0]=>
  int(0)
  [1]=>
  int(1)
  [2]=>
  int(2)
}



Actual result:
--------------
Call to undefined function posix_getgrouplist()

Patches

posix_getgrouplist (last revision 2012-02-14 19:50 UTC by dab1818 at gmail dot com)

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 16:01:29 2024 UTC