|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33429 Fatal error: Call to undefined function posix_getgrgid()
Submitted: 2005-06-22 09:07 UTC Modified: 2005-06-22 10:00 UTC
From: asavchuk at ngs dot ru Assigned:
Status: Not a bug Package: POSIX related
PHP Version: 5.0.3 OS: suse 9.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
34 - 2 = ?
Subscribe to this entry?

 [2005-06-22 09:07 UTC] asavchuk at ngs dot ru
install clean suse 9.3 with apache2,
and php5:

# php5 -v
PHP 5.0.3 (cgi) (built: Mar 22 2005 20:12:51)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies

'../configure' '--prefix=/usr' '--datadir=/usr/share/php5' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--libdir=/usr/lib' '--includedir=/usr/include' '--with-_lib=lib' '--sysconfdir=/etc/php5/apache2' '--with-config-file-path=/etc/php5/apache2' '--with-config-file-scan-dir=/etc/php5/conf.d' '--with-exec-dir=/usr/lib/php5/bin' '--enable-magic-quotes' '--enable-libxml' '--enable-session' '--with-pcre-regex' '--enable-xml' '--enable-simplexml' '--enable-spl' '--enable-safe-mode' '--enable-sigchild' '--disable-debug' '--enable-memory-limit' '--enable-inline-optimization' '--with-apxs2=/usr/sbin/apxs2' '--disable-all'

when try to use function posix_getgrgid
in simple php script posix.php

# php5 -e -f /posix.php

see fatal error:

Fatal error: Call to undefined function posix_getgrgid() in /terrra/posix.php on line 3

Reproduce code:
code of simple php script posix.php:

$a = posix_getgrgid(0);

Expected result:
think i should see something as:

# php -e -f /posix.php
array(4) {
  string(4) "root"
  string(1) "x"
  array(1) {
    string(4) "root"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-22 09:27 UTC] asavchuk at ngs dot ru
sorry, i forget to install php5-posix :(

after installing this package all is work.

 [2005-06-22 10:00 UTC]
no bug -> bogus.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 11:01:28 2024 UTC