|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-04-15 14:56 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2015-04-15 14:56 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 07:00:02 2026 UTC |
Description: ------------ When running SplFileObject with the READ_CSV flag set, it does not obey the field enclosure setting (") and thus ignores any multi lined data in the CSV file, IE any data field with new lines in it. Test script: --------------- https://gist.github.com/anonymous/7561146 Expected result: ---------------- I would expect the code to read the file as a CSV and when a field is enclosed in the correct markup that its contents be treated as a single line of CSV regardless of it having new lines in it. Actual result: -------------- The code correctly reads most lines but when a field contains a new line it treats that as the end of that line of CSV, even when enclosed in double quotes.