|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: robbert at persc dot nl
New email:
PHP Version: OS:


 [2011-02-08 16:06 UTC] robbert at persc dot nl
From manual page:

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?


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

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-08 16:37 UTC]
-Status: Open +Status: Bogus
 [2011-02-08 16:37 UTC]
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]
-Status: Bogus +Status: Re-Opened -Type: Documentation Problem +Type: Bug -Package: Unknown/Other Function +Package: Reflection related
 [2011-02-08 16:57 UTC]
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]
Automatic comment from SVN on behalf of cataphract
Log: - Fixed bug #53959 (reflection data for fgetcsv out-of-date).
 [2011-02-08 17:29 UTC]
-Status: Re-Opened +Status: Closed -Assigned To: +Assigned To: cataphract
 [2011-02-08 18:27 UTC]
-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-2022 The PHP Group
All rights reserved.
Last updated: Thu Aug 18 11:05:45 2022 UTC