php.net |  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
29 - 20 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-02 10:51 UTC] salathe@php.net
-Assigned To: +Assigned To: salathe
 [2011-11-02 13:24 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=318686
Log: add 3rd parameter to arg info for splfileobject fgetcsv/setcsvcontrol (bug #60201)
 [2011-11-02 15:56 UTC] salathe@php.net
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. :)
 [2011-11-02 15:56 UTC] salathe@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 09:01:28 2024 UTC