#27633 [Com]: Wrong translation in ASCII mode
ID: 27633
Comment by: liuhecai at liuhecai dot com
Reported By: vrana@php.net
Status: Open
Bug Type: FTP related
Operating System: Windows XP
PHP Version: 4.3.8
New Comment:
liuhecai
your site is good,becourse:
http://www.caipiaowangzhi.com/ ²ÊƱ
http://www.caipiaowangzhi.com/caipiao/ ²ÊƱ
http://www.caipiaowangzhi.com/ticai/ Ìå²Ê
http://www.caipiaowangzhi.com/zucai/ ×ã²Ê
http://www.caipiaowangzhi.com/jingyingcai/
½ðÒø²ÊÍø
http://www.caipiaowangzhi.com/qixingcai/
ÆßÐDzÊÍø
http://www.caipiaowangzhi.com/31xuan7/ 31ѡ7
http://www.caipiaowangzhi.com/36xuan7/ 36ѡ7
http://www.caipiaowangzhi.com/22xuan5/ 22ѡ5
http://www.caipiaowangzhi.com/fucai/ ¸£²Ê
http://www.caipiaowangzhi.com/fulicaipiao/
¸£Àû²ÊƱ
http://www.caipiaowangzhi.com/liuhecai/
ÁùºÏ²Ê
http://www.caipiaowangzhi.com/xianggangliuhecai/
Ïã¸ÛÁùºÏ²Ê
http://www.caipiaowangzhi.com/liuhecaigongsi/
ÁùºÏ²Ê¹«Ë¾
http://www.xianggangjc.com/liuhecai/ ÁùºÏ²Ê
http://www.xianggangjc.com/xianggangliuhecai/
Ïã¸ÛÁùºÏ²Ê
http://www.xianggangjc.com/ ÁùºÏ²Ê
http://www.xianggangjc.com/liuhecaigongsi/
ÁùºÏ²Ê¹«Ë¾
http://www.hk99w.com/ ÁùºÏ²Ê
http://www.caipiaowangzhi.com/tema/ ÌØÂë
http://www.hk99689.com/liuhecai/ ÁùºÏ²Ê
http://www.caipiaowangzhi.com/tianxianbaobao/
ÌìÏß±¦±¦
http://www.hk99689.com/ ÁùºÏ²Ê
http://www.caipiaowangzhi.com/kaijianggonggao/
¿ª½±¹«¸æ
http://www.hk99689.com/liuhecai/ ÁùºÏ²Ê
http://www.caipiaowangzhi.com/liuhetuku/
ÁùºÏͼ¿â
http://www.caipiaowangzhi.com/saimahui/
ÈüÂí»á
http://www.caipiaowangzhi.com/yimazhongte/
Ò»ÂëÖÐÌØ
http://www.caipiaowangzhi.com/yixiaozhongte/
һФÖÐÌØ
http://www.caipiaowangzhi.com/zengdaoren/
ÔøµÀÈË
http://www.caipiaowangzhi.com/simazhongte/
ËÄÂëÖÐÌØ
Previous Comments:
------------------------------------------------------------------------
[2004-07-23 17:55:56] vrana@php.net
\n becomes \r\r\n in PHP 4.3.8.
\n becomes \r\r in PHP 5.0.0 (last \n becomes \r\r\n).
------------------------------------------------------------------------
[2004-07-23 16:38:01] a dot hoekstra at boxitbv dot nl
Upgraded from 4.3.1 to 4.3.8.
After upgrade I got extra <cr> at end of line
when ftp in ascii mode from unix host to xp client.
In case of large file (+3kb) missing tail of file and no error
message!
Downgraded again to 4.3.1 to make things work :-(.
------------------------------------------------------------------------
[2004-03-18 12:07:48] iliaa@php.net
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.
------------------------------------------------------------------------
[2004-03-18 07:27:30] vrana@php.net
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
Thread (17 messages)
- vrana@php.net
- iliaa@php.net#27633 [Opn->Csd]: Wrong translation in ASCII mode
- a dot hoekstra at boxitbv dot nl#27633 [Com]: Wrong translation in ASCII mode
- vrana@php.net#27633 [Csd->Opn]: Wrong translation in ASCII mode
- liuhecai at liuhecai dot com#27633 [Com]: Wrong translation in ASCII mode
- sirbinam at hotmail dot com#27633 [Com]: Wrong translation in ASCII mode
- sniper@php.net#27633 [Opn]: [PATCH] Wrong translation in ASCII mode
- sniper@php.net#27633 [Opn->Asn]: [PATCH] Wrong translation in ASCII mode
- iliaa@php.net#27633 [Asn->Csd]: [PATCH] Wrong translation in ASCII mode
- vrana@php.net#27633 [Csd->Opn]: vrana
- sniper@php.net#27633 [Opn->Fbk]: Double \r problem on ftp_get in ASCII mode on Win32
- vrana@php.net#27633 [Fbk]: Double \r problem on ftp_get in ASCII mode on Win32
- vrana@php.net#27633 [Fbk->Opn]: Double \r problem on ftp_get in ASCII mode on Win32
- sniper@php.net#27633 [Opn->Asn]: Double \r problem on ftp_get in ASCII mode on Win32
- iliaa@php.net#27633 [Asn->Csd]: Double \r problem on ftp_get in ASCII mode on Win32
- vrana@php.net#27633 [Csd]: Double \r problem on ftp_get in ASCII mode on Win32
- "Bug #27633 [Com]: Double \r problem on ftp_get in ASCII mode on Win32