|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-03 03:20 UTC] sniper@php.net
[2005-02-17 16:38 UTC] iliaa@php.net
[2005-02-21 12:20 UTC] vrana@php.net
[2005-02-23 04:54 UTC] sniper@php.net
[2005-02-23 09:37 UTC] vrana@php.net
[2005-02-23 09:59 UTC] sniper@php.net
[2005-03-11 00:38 UTC] iliaa@php.net
[2005-03-11 15:27 UTC] vrana@php.net
[2010-03-05 02:22 UTC] batyafit at walla dot co dot il
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 10:00:01 2025 UTC |
Description: ------------ ftp_get() translates \n characters wrong in FTP_ASCII mode. Instead of \r\n, they become \r on Windows. Only newline at the end of a file (if any) is translated correct. \r\n on remote server become \r\r. Reproduce code: --------------- <?php $ftp = ftp_connect("ftp.netscape.com"); ftp_login($ftp, "anonymous", "anonymous"); ftp_pasv($ftp, true); ftp_get($ftp, "Welcome", "Welcome", FTP_ASCII); ftp_close($ftp); ?> Expected result: ---------------- \r\nWelcome ...\r\n Actual result: -------------- \rWelcome ...\r\n