ID:               27633
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         FTP related
 Operating System: Windows XP
 PHP Version:      4.3.5RC3
 New Comment:

This bug has been fixed in CVS.

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:
------------------------------------------------------------------------

[2004-03-18 07:27:30] [EMAIL PROTECTED]

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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27633&edit=1

Reply via email to