#36977 [Bgs->Opn]: Doc's for symlink are confusing
| From: | mpb dot mail at gmail dot com | Date: | Wed, 05 Apr 2006 16:40:39 +0000 |
| Subject: | #36977 [Bgs->Opn]: Doc's for symlink are confusing | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969372627@lists.php.net to get a copy of this message | ||
ID: 36977
User updated by: mpb dot mail at gmail dot com
Reported By: mpb dot mail at gmail dot com
-Status: Bogus
+Status: Open
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
vrana@php.net Closed this bug saying:
"Current wording follows parameters order."
Respectfully:
1) At the very least, the word "from" should be changed to the word
"to".
2) If the parameter names were listed in column 1 of a table, with
descriptions in column 2, then I agree that they should be listed in
order.
3) However, as the description of the parameters is a single English
sentence, I believe that sentence should be written for clarity.
4) The symlink man pages on both Linux and FreeBSD list the parameters
in reverse order, and are both much clearer than the PHP docs. I
prefer the Linux version.
Linux:
int symlink(const char *oldpath, const char *newpath);
symlink() creates a symbolic link named newpath which contains the
string oldpath.
FreeBSD:
int symlink(const char *name1, const char *name2);
A symbolic link name2 is created to name1 (name2 is the name of the
file created, name1 is the string used in creating the symbolic link).
I will not reopen this bug again. Thank you!
Previous Comments:
------------------------------------------------------------------------
[2006-04-05 16:14:49] vrana@php.net
Current wording follows parameters order.
------------------------------------------------------------------------
[2006-04-04 21:49:36] mpb dot mail at gmail dot com
Description:
------------
On this page: http://us2.php.net/manual/en/function.symlink.php
I get confused every time a read the following sentence:
"symlink() creates a symbolic link from the existing target with the
specified name link."
In my opinion, "from" is the wrong direction. Would it not be clearer
to say:
"symlink() creates a symbolic link named link that points to target.
Typically, target is a file or directory that already exists."
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36977&edit=1