|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: gordon at onlinehome dot de
New email:
PHP Version: OS:


 [2011-11-02 10:45 UTC] gordon at onlinehome dot de
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 ]


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-02 10:51 UTC]
-Assigned To: +Assigned To: salathe
 [2011-11-02 13:24 UTC]
Automatic comment from SVN on behalf of salathe
Log: add 3rd parameter to arg info for splfileobject fgetcsv/setcsvcontrol (bug #60201)
 [2011-11-02 15:56 UTC]
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

 For Windows:
Thank you for the report, and for helping us make PHP better.

Thanks Gordon. :)
 [2011-11-02 15:56 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 17 19:05:44 2022 UTC