Doc #54115 [PATCH]: Wrong example results for chown function

From: Date: Mon, 28 Feb 2011 09:08:19 +0000
Subject: Doc #54115 [PATCH]: Wrong example results for chown function
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6033@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 Patch added by: shein@php.net Reported by: shein@php.net Summary: Wrong example results for chown function Status: Open Type: Documentation Problem Package: Documentation problem Operating System: Ubuntu Linux 10.10 i386 PHP Version: Irrelevant Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#6033) next »