Hi internals,
I sent an email[1] to the list about this in November, which didn't gain
much traction.
I've created a pull request[2] which adds an optional parameter for
line endings to the fputcsv function. This enhancement addresses three
issues on the bug tracker, all of which are about the function being
non-compliant with RFC 4180[3]. To summarise the issue; the function uses
NL as its EOL character when the RFC stipulates that it should be CRLF. To
maintain backward compatibility the function still defaults to NL, but this
enhancement gives you the ability to provide a different character sequence
instead.
I'm hoping this gains some interest this time, even though it is quite
insignificant.
Kind regards,
Cameron
[1] https://externals.io/message/112248
[2] https://github.com/php/php-src/pull/6403
[3] https://tools.ietf.org/html/rfc4180
ReplyForward