Reflection data for fgetcsv out-of-date

 [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?


 [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

-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!