Doc #54115 [NEW]: Wrong example results for chown function
| From: | shein@php.net | Date: | Mon, 28 Feb 2011 09:07:55 +0000 |
| Subject: | Doc #54115 [NEW]: Wrong example results for chown function | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-6032@lists.php.net to get a copy of this message | ||
From: shein
Operating system: Ubuntu Linux 10.10 i386
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Wrong example results for chown function
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 bug report at http://bugs.php.net/bug.php?id=54115&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54115&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54115&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54115&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=54115&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54115&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=54115&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=54115&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=54115&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=54115&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=54115&r=support
Expected behavior: http://bugs.php.net/fix.php?id=54115&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=54115&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=54115&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=54115&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54115&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54115&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=54115&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=54115&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=54115&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=54115&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=54115&r=mysqlcfg