From: phpbugs at brianmertens dot com Operating system: Windows PHP version: 4.3.3 PHP Bug Type: FTP related Bug description: ASCII mode doesn't work
Description: ------------ This seems to be the same problem as 19036 (Closed) and 18162 (No Feedback). Since neither is still open, I am filing a new report. I will provide any feedback required. I can test snaps if they are compiled for Windows. Simply put, if I connect to a Unix (AIX 4.3) server and use ftp_get() to fetch a text file to a Windows machine with the FTP_ASCII option, the newlines are NOT converted to CR/LF pairs. ftp_get( $conn, "file.txt", "file.txt", FTP_ASCII ); I have reproduced this with 4.2.x, 4.3.2 & 4.3.3. (Note that ftp_systype() returns "UNKNOWN".) Reproduce code: --------------- $conn = ftp_connect( "server" ); ftp_login( $conn, "username", "password" ); ftp_get( $conn, "file.txt", "file.txt", FTP_ASCII ); Expected result: ---------------- Lines terminated with CR/LF pairs (x0D x0A). Actual result: -------------- Lines terminated with single x0A chars. -- Edit bug report at http://bugs.php.net/?id=25314&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25314&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25314&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25314&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25314&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25314&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25314&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25314&r=support Expected behavior: http://bugs.php.net/fix.php?id=25314&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25314&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25314&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25314&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25314&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25314&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25314&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25314&r=gnused