Doc #60878 [NEW]: Incorrect and Incomplete documentation for SplFileObject::fputcsv
| From: | sergiy dot sokolenko at gmail dot com | Date: | Wed, 25 Jan 2012 13:08:34 +0000 |
| Subject: | Doc #60878 [NEW]: Incorrect and Incomplete documentation for SplFileObject::fputcsv | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-7862@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Incorrect and Incomplete documentation for SplFileObject::fputcsv
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 bug report at https://bugs.php.net/bug.php?id=60878&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60878&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60878&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60878&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=60878&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60878&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=60878&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=60878&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=60878&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=60878&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=60878&r=support
Expected behavior: https://bugs.php.net/fix.php?id=60878&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=60878&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=60878&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=60878&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60878&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60878&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=60878&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=60878&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=60878&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=60878&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=60878&r=mysqlcfg