ports/178406: PHP on FreeBSD missing ftp_ssl_connect function

Mark Felder feld at feld.me
Tue May 7 21:00:01 UTC 2013


>Number:         178406
>Category:       ports
>Synopsis:       PHP on FreeBSD missing ftp_ssl_connect function
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 07 21:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Mark Felder
>Release:        9.1-RELEASE
>Organization:
>Environment:
FreeBSD mwi1.coffeenet.org 9.1-RELEASE FreeBSD 9.1-RELEASE #6 r243808: Mon Dec  3 07:51:34 CST 2012     root at mwi1.coffeenet.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
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.
>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"
>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..."



>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list