Doc #52306 [Opn->Csd]: finfo procedural/oop syntax
| From: | markskilbeck@php.net | Date: | Tue, 21 Sep 2010 16:09:44 +0000 |
| Subject: | Doc #52306 [Opn->Csd]: finfo procedural/oop syntax | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5104@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52306&edit=1
ID: 52306
Updated by: markskilbeck@php.net
Reported by: ch@php.net
Summary: finfo procedural/oop syntax
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: markskilbeck
Block user comment: 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.
I've added the procedural vs. OOP stuff :)
Previous Comments:
------------------------------------------------------------------------
[2010-09-21 18:08:03] markskilbeck@php.net
Automatic comment from SVN on behalf of markskilbeck
Revision: http://svn.php.net/viewvc/?view=revision&revision=303644
Log: Clarifies documentation (procedural vs oop) re #52306
------------------------------------------------------------------------
[2010-09-20 18:34:54] philip@php.net
Changing this bug. I no longer see the file() link but all of the finfo
documentation should better explain the oop/procedural differences.
------------------------------------------------------------------------
[2010-07-11 15:41:48] ch@php.net
Description:
------------
http://de3.php.net/manual/en/function.finfo-file.php
currently reads:
----------------------------------------
Description
string finfo_file ( resource $finfo , string $file_name = NULL [, int
$options = FILEINFO_NONE [, resource $context = NULL ]] )
finfo
string file ( string $file_name = NULL [, int $options =
FILEINFO_NONE [, resource $context = NULL ]] )
----------------------------------------
Where file is a hyperlink to the PHP file() function. It was not quite
clear to me what this syntax description of a file() function was trying
to tell me until I came across
http://de3.php.net/manual/en/function.finfo-open.php
which clearly
describes the first as "procedural style" and the second as "object
oriented style:".
Maybe that can be done for the other functions, too.
Test script:
---------------
-
Expected result:
----------------
-
Actual result:
--------------
-
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52306&edit=1