Doc #54115 [Opn->Csd]: Wrong example results for chown function
| From: | shein@php.net | Date: | Mon, 28 Feb 2011 10:19:23 +0000 |
| Subject: | Doc #54115 [Opn->Csd]: Wrong example results for chown function | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-6034@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54115&edit=1
ID: 54115
Updated by: shein@php.net
Reported by: shein@php.net
Summary: Wrong example results for chown function
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: Ubuntu Linux 10.10 i386
PHP Version: Irrelevant
-Assigned To:
+Assigned To: shein
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2011-02-28 11:16:51] shein@php.net
Automatic comment from SVN on behalf of shein
Revision: http://svn.php.net/viewvc/?view=revision&revision=308757
Log: Updated example results in chown function (closes #54115).
------------------------------------------------------------------------
[2011-02-28 10:08:18] shein@php.net
The following patch has been added/updated:
Patch Name: chown-example
Revision: 1298884098
URL:
http://bugs.php.net/patch-display.php?bug=54115&patch=chown-example&revision=1298884098
------------------------------------------------------------------------
[2011-02-28 10:07:54] shein@php.net
Description:
------------
---
From manual page: http://www.php.net/function.chown#Examples
---
If chown worked correctly there should be info about root user and not
about
php.net user. Also output is more like var_dump() one than print_r().
Expected result:
----------------
Array
(
[name] => root
[passwd] => x
[uid] => 0
[gid] => 0
[gecos] => root
[dir] => /root
[shell] => /bin/bash
)
Actual result:
--------------
array(7) {
["name"]=>
string(13) "php.net"
["passwd"]=>
string(1) "x"
["uid"]=>
int(148864)
["gid"]=>
int(148910)
["gecos"]=>
string(13) "php.net"
["dir"]=>
string(25) "/home/sites/php.net"
["shell"]=>
string(13) "/sbin/nologin"
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54115&edit=1