Edit report at https://bugs.php.net/bug.php?id=60201&edit=1

 ID:                 60201
 Updated by:         sala...@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] sala...@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

Reply via email to