|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
31 + 36 = ?
Subscribe to this entry?

 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 10:01:28 2024 UTC