Bug #53959 [Csd]: Reflection data for fgetcsv out-of-date
| From: | robbert at persc dot nl | Date: | Wed, 09 Feb 2011 07:52:02 +0000 |
| Subject: | Bug #53959 [Csd]: Reflection data for fgetcsv out-of-date | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-158623@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53959&edit=1
ID: 53959
User updated by: robbert at persc dot nl
Reported by: robbert at persc dot nl
Summary: Reflection data for fgetcsv out-of-date
Status: Closed
Type: Bug
Package: Reflection related
PHP Version: Irrelevant
Assigned To: cataphract
Block user comment: N
Private report: N
New Comment:
Thanks for the answers!
Previous Comments:
------------------------------------------------------------------------
[2011-02-08 17:29:36] cataphract@php.net
Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&revision=308127
Log: - Fixed bug #53959 (reflection data for fgetcsv out-of-date).
------------------------------------------------------------------------
[2011-02-08 16:57:45] 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 16:37:04] 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:06:35] 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?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53959&edit=1