php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53959 Reflection data for fgetcsv out-of-date
Submitted: 2011-02-08 16:06 UTC Modified: 2011-02-09 08:52 UTC
From: robbert at persc dot nl Assigned: cataphract (profile)
Status: Closed Package: Reflection related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2011-02-08 16:06 UTC] robbert at persc dot nl
Description:
------------
---
From manual page: http://www.php.net/function.fgetcsv#Description
---

The documentation says you can use 5 different parameters, but there are only 4 allowed.

So is this a feature or something from an older php version?


Patches

fgetcsv_reflection.patch (last revision 2011-02-08 15:58 UTC by RQuadling at GMail dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-08 16:37 UTC] salathe@php.net
-Status: Open +Status: Bogus
 [2011-02-08 16:37 UTC] salathe@php.net
As documented on that page, there are five parameters and the fifth parameter 
"escape" was added with PHP 5.3.0 (see the Changelog section).
 [2011-02-08 16:57 UTC] rquadling@php.net
-Status: Bogus +Status: Re-Opened -Type: Documentation Problem +Type: Bug -Package: Unknown/Other Function +Package: Reflection related
 [2011-02-08 16:57 UTC] rquadling@php.net
There is a bug here with the reflection of fgetcsv.

php -n --rf fgetcsv shows ...

Function [ <internal:standard> function fgetcsv ] {

  - Parameters [4] {
    Parameter #0 [ <required> $fp ]
    Parameter #1 [ <optional> $length ]
    Parameter #2 [ <optional> $delimiter ]
    Parameter #3 [ <optional> $enclosure ]
  }
}

The attached patch fixes the reflection.
 [2011-02-08 17:29 UTC] cataphract@php.net
Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=308127
Log: - Fixed bug #53959 (reflection data for fgetcsv out-of-date).
 [2011-02-08 17:29 UTC] cataphract@php.net
-Status: Re-Opened +Status: Closed -Assigned To: +Assigned To: cataphract
 [2011-02-08 18:27 UTC] sixd@php.net
-Summary: feature or something old? +Summary: Reflection data for fgetcsv out-of-date
 [2011-02-09 08:52 UTC] robbert at persc dot nl
Thanks for the answers!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC