|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29138 Need recompilation to make SSL work for FTP in Windows.
Submitted: 2004-07-14 10:30 UTC Modified: 2005-03-17 01:00 UTC
From: danielakesson at hotmail dot com Assigned:
Status: No Feedback Package: FTP related
PHP Version: 5.0.0 OS: Windows XP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-07-14 10:30 UTC] danielakesson at hotmail dot com

This have apparently been up before, but I was hoping for an easier fix. Now, I have OpenSSL and ftpfunctions working.

ftp_connect("localhost", 21);
$privkey = openssl_pkey_new();

Works without any complaints.

However! To make SSL work with ftp on Windows one have to recompile the binary with SSL support!
If I got it right, according to the docs on, it states that the ftp_ssl_connect(...) function should be there if OpenSSL is enabled aswell as the FTP functions. Well, I have them enabled but php says:
Fatal error: Call to undefined function ftp_ssl_connect()

The fixed .zip just includes the recompiled php4ts.dll (which makes the ftp_ssl_connect() availble). (Also, the "fixed" .dll file I've tested forced me to disable the OpenSSL extension, because else I had "Duplicate name" error)

Im not sure how you have implemented this, but it would be nice if the ftp_ssl_connect function actually was there, when both of those extensions were enabled (OpenSSL and FTP - although ftp is build in in Windows)

Or, if that .dll file is included aswell (or, why not have it enabled by default for windows?) As I can see if, its just one function... I mean, why all the trouble for a Windows user just to make this funtion work?

Thank you,


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-14 10:55 UTC] danielakesson at hotmail dot com
Forgot to mention that yes, I copied the libeay32.dll and the ssleay32.dll to system32 folder. Didnt make any difference!
 [2005-03-06 20:41 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-03-17 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 02:01:28 2024 UTC