Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.1

Bug #4792 File_CSV: Last column keeps line breaks
Submitted: 2005-07-11 21:31 UTC
From: razzari at gmail dot com Assigned: dufuz
Status: Closed Package: File
PHP Version: 4.3.11 OS: Linux
Roadmaps: 1.3.0a1    
Subscription  
Comments Add Comment Add patch


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 : 19 - 10 = ?

 
 [2005-07-11 21:31 UTC] razzari at gmail dot com
Description: ------------ When reading a delimited text-file with File_CSV, the last column keeps the line break, and because of that I have to trim it. It happens with both Unix and Windows line breaks. Please see the reproduced code at the URL below. Reproduce code: --------------- http://dev.mkti.com.ar/cvam/MAIL/_test/file_csv_testcase_trim_last_line.php Expected result: ---------------- All the fields in the row return a string with no line breaks, as there is no line break other than the line separator. However the last field for each row keeps the line break after it, therefore forcing me to post-process the data. This seems an obvious issue, so I must admit I'm inclined to think I've done something wrong. Actual result: -------------- A string with no line break at the end.

Comments

 [2005-08-09 08:13 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2007-03-22 21:58 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!