php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #68479 Escape parameter missing from SplFileObject::fputcsv
Submitted: 2014-11-22 12:06 UTC Modified: -
From: salathe@php.net Assigned:
Status: Closed Package: SPL related
PHP Version: 5.5.19 OS:
Private report: No CVE-ID: None
 [2014-11-22 12:06 UTC] salathe@php.net
Description:
------------
The $escape parameter was added to fputcsv() in PHP 5.5.0. The same parameter should be added to SplFileObject::fputcsv() to match.  Currently, SplFileObject::setCsvControl() must be used to set the escape character.


Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-05 09:20 UTC] jpauli@php.net
Automatic comment on behalf of petercowburn@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=557026301f0a49fcc4f358e20e0e126a1eab6fd0
Log: Fixed #68479 - Added escape parameter to SplFileObject::fputcsv
 [2014-12-05 09:20 UTC] jpauli@php.net
-Status: Open +Status: Closed
 [2014-12-05 09:20 UTC] jpauli@php.net
Automatic comment on behalf of petercowburn@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=557026301f0a49fcc4f358e20e0e126a1eab6fd0
Log: Fixed #68479 - Added escape parameter to SplFileObject::fputcsv
 [2014-12-05 09:21 UTC] jpauli@php.net
Automatic comment on behalf of petercowburn@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=557026301f0a49fcc4f358e20e0e126a1eab6fd0
Log: Fixed #68479 - Added escape parameter to SplFileObject::fputcsv
 [2014-12-06 20:49 UTC] ab@php.net
Automatic comment on behalf of petercowburn@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=557026301f0a49fcc4f358e20e0e126a1eab6fd0
Log: Fixed #68479 - Added escape parameter to SplFileObject::fputcsv
 [2015-02-02 11:34 UTC] siemienik dot pawel at gmail dot com
Message: Declaration of Goodby\CSV\Export\Standard\CsvFileObject::fputcsv() should be compatible with SplFileObject::fputcsv($fields, $delimiter = NULL, $enclosure = NULL, $escape = NULL)

The documentation have no information about this!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC