setCsvControl does not expose third argument via Reflection
| Bug #60201 | SplFileObject::setCsvControl does not expose third argument via Reflection | ||||
|---|---|---|---|---|---|
| Submitted: | 2011-11-02 10:45 UTC | Modified: | 2011-11-02 15:56 UTC | ||
| From: | gordon at onlinehome dot de | Assigned: | salathe (profile) | ||
| Status: | Closed | Package: | SPL related | ||
| PHP Version: | 5.4.0beta2 | OS: | any | ||
| Private report: | No | CVE-ID: | None | ||
[2011-11-02 10:45 UTC] 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 ]
}
}
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2011-11-02 15:56 UTC] salathe@php.net