php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: asavchuk at ngs dot ru
New email:
PHP Version: OS:

 

 [2005-06-22 09:07 UTC] asavchuk at ngs dot ru
Description:
------------
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:

<?PHP
$a = posix_getgrgid(0);
var_dump($a);
?>

Expected result:
----------------
think i should see something as:

# php -e -f /posix.php
array(4) {
  ["name"]=>
  string(4) "root"
  ["passwd"]=>
  string(1) "x"
  ["members"]=>
  array(1) {
    [0]=>
    string(4) "root"
  }
  ["gid"]=>
  int(0)
}



Patches

Pull Requests

History

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.

/closed/
 [2005-06-22 10:00 UTC] tony2001@php.net
no bug -> bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 27 16:01:27 2024 UTC