Bug 178406

Summary: lang/php5: PHP on FreeBSD missing ftp_ssl_connect function
Product: Ports & Packages Reporter: Mark Felder <feld>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Mark Felder freebsd_committer freebsd_triage 2013-05-07 22:00:00 UTC
On FreeBSD via the ports system it is not possible to use the ftp_ssl_connect function if you install the PHP software from ports. We recently started forcing FTPS connections on all of our servers and now software like Wordpress cannot update itself over FTP because this function does not exist.

Fix: 

Build OpenSSL and FTP support into lang/php5 or lang/php53 by default and remove the modules from the ports tree.

This is a known issue and if you look at Debian you'll see that there is no debian package for OpenSSL or FTP support. This is built statically into the base php functionality.


See the following URL:

http://php.net/manual/en/function.ftp-ssl-connect.php

Note: Why this function may not exist

"ftp_ssl_connect() is only available if both the ftp module and the OpenSSL support is built statically into php..."
How-To-Repeat: Install php53-ftp or php5-ftp from ports

php -r 'if(function_exists('ftp_ssl_connect')) {echo "ftp_ssl_connect exists\n";} else {echo "ftp_ssl_connect does not exist\n";}'

it will always say "ftp_ssl_connect does not exist"
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-05-08 22:32:40 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2013-05-09 08:39:59 UTC
State Changed
From-To: open->closed

Fixed.