ID: 36103 Updated by: [EMAIL PROTECTED] Reported By: rebe at unit01 dot net -Status: Assigned +Status: Feedback Bug Type: FTP related Operating System: linux PHP Version: 5.1.2 Assigned To: tony2001 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi Previous Comments: ------------------------------------------------------------------------ [2007-10-12 14:21:59] contact dot removethis at deciacco dot com I made a mistake in my last comment above. It's not the ftp_getdata() function! It's the data_accept() function that also needs to be updated. ------------------------------------------------------------------------ [2007-10-12 04:36:42] contact dot removethis at deciacco dot com I've found that you also have to update the ftp_getdata() function in the same ftp.c file. I was able to get my version running with tony2001's patch. You have to modify it slightly for the ftp_getdata() function. Basically, you have to use data->ssl_handle in the place of ftp->ssl_handle. For more details see my post: http://www.deciacco.com/blog/archives/124 ------------------------------------------------------------------------ [2006-11-14 02:41:21] be_nice_or_feel_hell at yahoo dot com Hi, If any of you can help me I would greatly appreciate it. I'm trying to get into this thru FTP and am getting the error for 550 SSL/TLS required on the control channel in CMD. As I am trying to connect though I know it is a unix apache server. I am a "noob". Can anyone help me get to this server with authentication please? 128.6.68.133 ------------------------------------------------------------------------ [2006-02-22 01:51:57] rebe at unit01 dot net OK, so while i am little but less busy i checked everything again and it looks like both of patches solving problem while connecting to some ftp servers but not everywhere. I am not very clever with that network knowledge but i guess it is still something about blocking/nonblocking sockets. Whole mess i produced before, that one patch is working and second not was about different ftp servers i checked. Now i have my own ftp server configured and TLS is required on it connect. I checked again with lftp client and it's working. Started again from scratch to compile PHP 5.1.2 (./configure --with-apxs --enable-ftp --enable-pcntl --with-mysql --enable-sockets --with-openssl) With Tony's patch and got that: ---------------------------------------------- Warning: ftp_login(): SSL/TLS handshake failed in /root/ftptest.php on line 5 Warning: ftp_login(): AUTH TLS successful in /root/ftptest.php on line 5 login failed ---------------------------------------------- With my patch: ---------------------------------------------- Segmentation fault ---------------------------------------------- So, if i can help anyhow to give you more info (i.e. strace or something) let me know. I still really need to get this work. ------------------------------------------------------------------------ [2006-01-30 08:52:20] [EMAIL PROTECTED] >OK, so looks like your patch is also working properly. Sorry, I didn't get that. Does my patch work without any modifications? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/36103 -- Edit this bug report at http://bugs.php.net/?id=36103&edit=1