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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dab1818 at gmail dot com
New email:
PHP Version: OS:

 

 [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)

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon May 20 16:01:26 2019 UTC