php.net |  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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: danielakesson at hotmail dot com
New email:
PHP Version: OS:

 

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

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

Both:
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 php.net, 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()


http://bugs.php.net/bug.php?id=23995

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,
Daniel


Patches

Pull Requests

History

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] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [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: Sat Dec 21 13:01:31 2024 UTC