Bug #53279 [Csd]: SplFileObject doesn't initialise default CSV escape character

From: Date: Tue, 09 Nov 2010 14:54:49 +0000
Subject: Bug #53279 [Csd]: SplFileObject doesn't initialise default CSV escape character
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-155887@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53279&edit=1 ID: 53279 Updated by: aharvey@php.net Reported by: aharvey@php.net Summary: SplFileObject doesn't initialise default CSV escape character Status: Closed Type: Bug Package: SPL related Operating System: Irrelevant PHP Version: trunk-SVN-2010-11-09 (SVN) Assigned To: aharvey Block user comment: 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/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2010-11-09 15:53:25] aharvey@php.net Automatic comment from SVN on behalf of aharvey Revision: http://svn.php.net/viewvc/?view=revision&revision=305227 Log: Fix bug #53279 (SplFileObject doesn't initialise default CSV escape character). ------------------------------------------------------------------------ [2010-11-09 15:50:20] aharvey@php.net Description: ------------ While the default CSV enclosure and delimiter are properly initialised, SplFileObject never explicitly initialises the default escape character within instances after the structure in question is first zeroed with memset(), which means it defaults to (char) 0. All other CSV related functions in PHP default to \ as the escape character as of 5.3. Fix forthcoming; I'm just opening this so it's searchable and to get a bug number for the NEWS. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53279&edit=1

« previous php.bugs (#155887) next »