Doc #60878 [Asn->Csd]: Incorrect and Incomplete documentation for SplFileObject::fputcsv
| From: | salathe@php.net | Date: | Thu, 26 Apr 2012 21:22:22 +0000 |
| Subject: | Doc #60878 [Asn->Csd]: Incorrect and Incomplete documentation for SplFileObject::fputcsv | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-8303@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60878&edit=1
ID: 60878
Updated by: salathe@php.net
Reported by: sergiy dot sokolenko at gmail dot com
Summary: Incorrect and Incomplete documentation for
SplFileObject::fputcsv
-Status: Assigned
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Assigned To: salathe
Block user comment: N
Private report: 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.
Previous Comments:
------------------------------------------------------------------------
[2012-04-26 21:21:17] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=325467
Log: document SplFileObject::fputcsv() (doc #60878)
------------------------------------------------------------------------
[2012-01-25 13:08:33] sergiy dot sokolenko at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/splfileobject.fputcsv#refsect1-splfileobject.fputcsv-description
---
1. Issue #1: incorrect proto
A $fields parameter is of type array, not string as it stated in the description:
public int SplFileObject::fputcsv ( string $fields [, string $delimiter [, string $enclosure ]] )
The correct version is:
public int SplFileObject::fputcsv ( array $fields [, string $delimiter [, string $enclosure]])
2. Issue #2: PHP version not specified
Some people may think it is already available in PHP 5.3, but fputcsv is only available for PHP 5.4.
Something like "(PHP 5 >= 5.4.x)" shall be added to the description.
3. Issue #3: Description and examples are not available
Because this method uses php.net/fputcsv internally, the description and examples may be just copied
from there.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60878&edit=1