FW: ftp.c in php3.0.14

From: Date: Sat, 05 Feb 2000 01:16:58 +0000
Subject: FW: ftp.c in php3.0.14
Groups: php.dev 
Request: Send a blank email to php-dev+get-15213@lists.php.net to get a copy of this message
Forgot to post to the developers lists.... Here are my changes... M -----Original Message----- From: Matthew Herman [mailto:mh@goon-line.com] Sent: Friday, February 04, 2000 5:11 PM To: askalski@chek.com Subject: ftp.c in php3.0.14 Hello Andrew, I have been testing out the ftp functionality and I have run into a little bug. It seems that an NT box will responded with a 125 message in passive mode as opposed to a 150. Your program is expecting a 150 response. I have attached my changes that seem to work. I am not sure if this was the best place to put this. The diff's are below. Anyhow, thanks for the ftp.c program. It's going to be useful for me. Matthew diff ftp.c /tmp/ftp.c 553c553 < if (!ftp_getresp(ftp) || ftp->resp != 150) --- > if (!ftp_getresp(ftp) || !( ftp->resp == 150 || ftp->resp == 125) ) WindowsNT conversation -=-=-=-=-=-=-=-=-=-=-=-=-=-=- ftp x.x.x Connected to x.x.x. 220 webserver1 Microsoft FTP Service (Version 4.0). Name (x.x.x:mh): me 331 Password required for me. Password: 230-xxxxxxxxx 230 xxxxxxxxx. Remote system type is Windows_NT. ftp> passive Passive mode on. ftp> cd / 250 CWD command successful. ftp> put x.xxx local: x.xxx remote: x.xxx 227 Entering Passive Mode (x). 125 Data connection already open; Transfer starting. 226 Transfer complete. 885 bytes sent in 0.000323 secs (2.7e+03 Kbytes/sec) ftp> bye 221 Goodbye UNIX conversation -=-=-=-=-=-=-=-=-=-=-=-=-=-=- ftp xxx.goon-line.com Connected to xxx.goon-line.com. 220 xxx.GoOn-Line.com FTP server (Version wu-2.6.0(1) Thu Oct 21 12:27:00 EDT 1999) ready. Name (xxx.goon-line.com:mh): me 331 Password required for me. Password: 230 User me logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> passive Passive mode on. ftp> cd / 250 CWD command successful. put x.xxx local: x.xxx remote: x.xxx 227 Entering Passive Mode (x) 150 Opening BINARY mode data connection for go010016.ord. 226 Transfer complete. 838 bytes sent in 0.000133 secs (6.2e+03 Kbytes/sec) M -=-=-=-=-=-=-= Matthew Herman ShopGoOnLine.com VP 530.891.4100

« previous php.dev (#15213) next »