Skip to content

php extensions defined in the PHP_EXTENSIONS environment variable are not installed #329

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

Closed
defser opened this issue Aug 31, 2022 · 1 comment · Fixed by #325
Closed
Labels
bug confirmed Bug reproduced and qualified

Comments

@defser
Copy link

defser commented Aug 31, 2022

Using image 8.0-v4-fpm-node16 (possible more images affected)

Set environment variable PHP_EXTENSIONS to "intl gd sqlite3 pdo_sqlite imagick xdebug"

Exception:
Invalid extension name found in PHP_EXTENSIONS environment variable. Found: 'intl'. Available extensions: calendar, ctype, curl, dom, exif, ffi, fileinfo, ftp, gettext, iconv, mbstring, opcache, pdo, phar, posix, readline, shmop, simplexml, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, zip.

Expected:
The extensions defined in PHP_EXTENSIONS are installed and usable

@beejaz
Copy link

beejaz commented Sep 8, 2022

It doesnt work that way. ARG and ENV var is not working the same. As per the readme;

Beware :

The ARG PHP_EXTENSIONS command must be written before the FROM. This is not a typo.
ARG PHP_EXTENSIONS="" it's not the same as ENV PHP_EXTENSIONS=""

@mistraloz mistraloz added the bug confirmed Bug reproduced and qualified label Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug confirmed Bug reproduced and qualified
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants