Bug #60201 [Asn->Csd]: SplFileObject::setCsvControl does not expose third argument via Reflection
| From: | salathe@php.net | Date: | Wed, 02 Nov 2011 15:56:18 +0000 |
| Subject: | Bug #60201 [Asn->Csd]: SplFileObject::setCsvControl does not expose third argument via Reflection | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164817@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60201&edit=1
ID: 60201
Updated by: salathe@php.net
Reported by: gordon at onlinehome dot de
Summary: SplFileObject::setCsvControl does not expose third
argument via Reflection
-Status: Assigned
+Status: Closed
Type: Bug
Package: SPL related
Operating System: any
PHP Version: 5.4.0beta2
Assigned To: salathe
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Thanks Gordon. :)
Previous Comments:
------------------------------------------------------------------------
[2011-11-02 13:24:41] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=318686
Log: add 3rd parameter to arg info for splfileobject fgetcsv/setcsvcontrol (bug #60201)
------------------------------------------------------------------------
[2011-11-02 10:45:53] gordon at onlinehome dot de
Description:
------------
The method signature for SplFileObject::setCsvControl given in the manual lists three arguments
$delimiter, $enclosure and $escape. When using the Reflection API to export the method, the third
argument $escape is missing.
Test script:
---------------
ReflectionMethod::export('SplFileObject', 'setCsvControl');
Expected result:
----------------
Method [ <internal:SPL> public method setCsvControl ] {
- Parameters [3] {
Parameter #0 [ <optional> $delimiter ]
Parameter #1 [ <optional> $enclosure ]
Parameter #2 [ <optional> $escape ]
}
}
Actual result:
--------------
Method [ <internal:SPL> public method setCsvControl ] {
- Parameters [2] {
Parameter #0 [ <optional> $delimiter ]
Parameter #1 [ <optional> $enclosure ]
}
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60201&edit=1