Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use ftp_ssl_connect() with this docker image #236

Closed
000panther opened this issue Jun 1, 2016 · 3 comments
Closed

Cannot use ftp_ssl_connect() with this docker image #236

000panther opened this issue Jun 1, 2016 · 3 comments

Comments

@000panther
Copy link

Hi! In my project we need FTP client support, so I added the ftp extension:

RUN docker-php-ext-install ftp

This adds the basic FTP Constants and some of the functions.

The problem is that to use some ftp functions (e.g. ftp_ssl_connect() ), the ftp extension needs to be statically build into php. Can I still use this Image or do I have to create my own Docker Image with --enable-ftp activated? http://php.net/manual/en/ftp.installation.php

@yosifkit
Copy link
Member

yosifkit commented Jun 1, 2016

I guess this means we need to add enable-ftp to the configure like mysqlnd and mbstring. 😢

ftp_ssl_connect() is only available if both the ftp module and the OpenSSL support is built statically into php

@000panther
Copy link
Author

Yep, I just tried adding this to my setup manually and adding the --enable-ftp configure flag solves the issue. Seems like I have to use my own image for now until you guys can get this fixed. I could do a pull request if that is helpful.

@patrickomeara
Copy link
Contributor

patrickomeara commented Jul 29, 2016

I'm hitting this issue as well.

I tried adding --enable-ftp to the configure but still didn't get ftp_ssl_connect()

@hobbysoldat can you create a PR or share what changes you made to get it working?

@tianon tianon closed this as completed in 1d332d0 Aug 9, 2016
patrickomeara added a commit to maintainlyhq/official-images that referenced this issue Aug 10, 2016
`--enable-ftp` for php at build time

docker-library/php#236
ReactDevs007 added a commit to ReactDevs007/dockerlib that referenced this issue Feb 3, 2021
--enable-ftp as some php function need it compiled statically

fixes docker-library/php#236
ene519 added a commit to ene519/docker-library-php that referenced this issue Jan 12, 2023
--enable-ftp as some php function need it compiled statically

fixes docker-library/php#236
VenusPR added a commit to VenusPR/PHP_Project that referenced this issue Mar 12, 2023
--enable-ftp as some php function need it compiled statically

fixes docker-library/php#236
MuzanEDM added a commit to MuzanEDM/docker-php that referenced this issue Nov 14, 2023
--enable-ftp as some php function need it compiled statically

fixes docker-library/php#236
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants