ID:               27633
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         FTP related
 Operating System: win32 only
 PHP Version:      4CVS, 5CVS (2005-02-22)
 Assigned To:      iliaa
 New Comment:

It's the same with the latest Windows snapshot :-(.


Previous Comments:
------------------------------------------------------------------------

[2005-02-23 04:54:07] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

There was some problem with win32 snapshots again..


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

[2005-02-21 12:20:51] [EMAIL PROTECTED]

I can't see any change:

\n becomes \r\r on 5.1.0-dev (200502210730)
\n becomes \r\r on 5.0.4-dev (200502210930)
\n becomes \r\r\n on 4.3.11-dev (200502210530)

last \n becomes \r\r\n on 5.

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

[2005-02-17 16:38:41] [EMAIL PROTECTED]

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.



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

[2005-02-03 03:20:09] [EMAIL PROTECTED]

http://www.binam.net/bug-27633.patch


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

[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