Req #77319 [NEW]: Add an optional group paramter for chown() and lchown()
| From: | manuel dot schmitt at manitu dot de | Date: | Wed, 19 Dec 2018 06:35:51 +0000 |
| Subject: | Req #77319 [NEW]: Add an optional group paramter for chown() and lchown() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-218516@lists.php.net to get a copy of this message | ||
From: manuel dot schmitt at manitu dot de
Operating system: n/a
PHP version: Irrelevant
Package: *Directory/Filesystem functions
Bug Type: Feature/Change Request
Bug description:Add an optional group paramter for chown() and lchown()
Description:
------------
The chown() and lchown() function do currently change owner ($user)
only.
Especially for *nix systems it would be great to have an optional $group
parameter for changing user and group in one step instead of using
chgrp() / lchgrp() as another step.
On most *nix systems this optional, 3rd parameter could be "simply"
passed to
int chown(const char *path, uid_t owner, gid_t group);
int lchown(const char *path, uid_t owner, gid_t group);
(from $ man 2 chown)
I think an optional 3rd paramter should not break existing
script/applications so it could be integrated very smoothly.
Expected result:
----------------
chown() and lchown() should accept a 3rd, optional group name or group
id parameter.
Actual result:
--------------
chown() and lchown() currently only accept only 2 parameters.
--
Edit bug report at https://bugs.php.net/bug.php?id=77319&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77319&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77319&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77319&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77319&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77319&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77319&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77319&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77319&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77319&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77319&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77319&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77319&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77319&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77319&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77319&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77319&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77319&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77319&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77319&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77319&r=mysqlcfg