Doc #51684 [Ana->Csd]: Manual pages requirement mistype
| From: | salathe@php.net | Date: | Wed, 18 Aug 2010 16:23:50 +0000 |
| Subject: | Doc #51684 [Ana->Csd]: Manual pages requirement mistype | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4883@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51684&edit=1
ID: 51684
Updated by: salathe@php.net
Reported by: jmagalhaes dot pt at gmail dot com
Summary: Manual pages requirement mistype
-Status: Analyzed
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Assigned To: salathe
Block user comment: N
Previous Comments:
------------------------------------------------------------------------
[2010-06-10 18:22:57] salathe@php.net
Weird, I'm sure I didn't click feature/change request.
------------------------------------------------------------------------
[2010-04-29 12:50:15] jmagalhaes dot pt at gmail dot com
I understand it now.
Since I have to deal with several servers with different versions of
PHP, sometimes I have make different actions/scripts depending on the
server version. With that, I started paying attention to the functions
version requirement in the online manual.
This was the first time I saw a <= on a function requirement, and wasn't
aware that are newer classes being added as root of existing classes
(now that you explained it to me, I found PHP 5.1.2 change log: "Added
class SplFileInfo as root class for DirectoryIterator and
SplFileObject").
My suggestion would be of using some kind of info box (like the notes
and tips, don't thing that a warning one is necessary), informing that
prior to version x this class/function is an extend of another, or to
use the new one instead, or something like that.
Thanks.
------------------------------------------------------------------------
[2010-04-28 21:36:24] salathe@php.net
The particular version that you cited is correct; let me explain. The
method was introduced with PHP 5.0.0 and the parent SplFileInfo class
was introduced in PHP 5.1.2. As of SplFileInfo being around, the
DirectoryIterator::isFile method no longer exists as its own entity and
is simply inherited from SplFileInfo::isFile.
As for the best way to document this without causing further confusion,
I'm working on it and open to suggestions.
------------------------------------------------------------------------
[2010-04-28 19:21:15] jmagalhaes dot pt at gmail dot com
I was about to reply to your comment, but I'm glad you understand it
now. :)
I know this isn't any bug, just a mistype, no worries.
------------------------------------------------------------------------
[2010-04-28 19:18:33] philip@php.net
Fail, I'll evaluate this :)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=51684
--
Edit this bug report at http://bugs.php.net/bug.php?id=51684&edit=1