Bug #16879 Updated: posix_getpwuid() fails incorrectly

From: Date: Sun, 07 Jul 2002 23:51:16 +0000
Subject: Bug #16879 Updated: posix_getpwuid() fails incorrectly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13433@lists.php.net to get a copy of this message
ID: 16879 Updated by: sniper@php.net Reported By: solo@n-w-t.net -Status: Feedback +Status: Bogus Bug Type: POSIX related Operating System: RedHat Linux 2.2.5 PHP Version: 4.0CVS-2002-04-27 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately your are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2002-07-02 05:48:26] sander@php.net Works fine for moe. Can you try a snapshot from http://snaps.php.net ? ------------------------------------------------------------------------ [2002-04-27 14:54:54] solo@n-w-t.net I am not sure that this is a bug, but for some reason, when attempting to get the file owner of a file getpwuid() fails (used in this context): $uid = fileowner($path); $owner = posix_getpwuid($uid); Fileowner() returns either 0 or 1028, and getpwuid fails. The 0 of course false would mean the file doesnt exist, but using the same variable ($path) in other functions such as fileperms() etc do not fail and return the proper data. Situation: $path = "/home/"; $uid = fileowner($path); $owner = posix_getpwuid($uid); $owner_name = $owner['name']; I have tried the same situation with valid filenames (instead of directories). all extensions are enabled and configure line is: './configure' '--target=i386-redhat-linux' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--disable-static' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp' '--without-mysql' '--with-xml' (as phpinfo() says it is) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16879&edit=1

« previous php.bugs (#13433) next »