Bug #62881 [Com]: posix_getpwnam("") && posix_getgrnam("") didn't return false on Mac OSX 10.8
| From: | reeze dot xia at gmail dot com | Date: | Wed, 22 Aug 2012 05:19:39 +0000 |
| Subject: | Bug #62881 [Com]: posix_getpwnam("") && posix_getgrnam("") didn't return false on Mac OSX 10.8 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-172781@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62881&edit=1
ID: 62881
Comment by: reeze dot xia at gmail dot com
Reported by: reeze dot xia at gmail dot com
Summary: posix_getpwnam("") && posix_getgrnam("")
didn't
return false on Mac OSX 10.8
Status: Wont fix
Type: Bug
Package: POSIX related
Operating System: Mac OSX 10.8
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
NO, I don't mean that. PHP isn't always running on lastest OS.
It just a conditional workaround for buggy api.
Since there are not that much application running on OSX.
I'm ok if you guys think we didn't fix that.
Previous Comments:
------------------------------------------------------------------------
[2012-08-22 04:57:57] laruence@php.net
you think we should fix this, then after apple fixed their bug, we remove this fix
then?
------------------------------------------------------------------------
[2012-08-22 04:10:58] reeze dot xia at gmail dot com
OooK... by hacking /etc/passwd hmmm. $ useradd didn't allow that.
so technically uid could be -1, etc heh.
anyway, there always trade off, I prefer it get fixed.
------------------------------------------------------------------------
[2012-08-22 03:50:53] aharvey@php.net
Yeah, I had to edit /etc/passwd directly to do it, but it's possible, and once created, the
account works normally on Linux: http://i.imgur.com/PI3zt.png
------------------------------------------------------------------------
[2012-08-22 03:45:25] reeze dot xia at gmail dot com
Hi, aharvey
how did you made it? by a tricky way?. :)
------------------------------------------------------------------------
[2012-08-22 03:43:45] laruence@php.net
it's no need:
1. first it's a knew bug of apple, apple will fix that
2. as you said, you can create a group with empty string in ubuntu.
we have no reason to introduce such a temporary fix
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=62881
--
Edit this bug report at https://bugs.php.net/bug.php?id=62881&edit=1