jorge07 / alpine-php

Multi Arch Alpine PHP Docker images. 5.6, 7{0,1,2,3,4}, 8.{1,2,3}
https://hub.docker.com/r/jorge07/alpine-php/
Apache License 2.0
129 stars 54 forks source link

Remove packages that are missing from PHP 7.2. #41

Closed Lutacon closed 6 years ago

Lutacon commented 6 years ago

When using your image with any tag of PHP7.2 and executing php was giving me the following message:

PHP Warning:  PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/lib/php7/modules/mcrypt.so (Error relocating /usr/lib/php7/modules/mcrypt.so: spprintf: symbol not found), /usr/lib/php7/modules/mcrypt.so.so (Error loading shared library /usr/lib/php7/modules/mcrypt.so.so: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'simplexml.so' (tried: /usr/lib/php7/modules/simplexml.so (Error relocating /usr/lib/php7/modules/simplexml.so: spl_ce_Countable: symbol not found), /usr/lib/php7/modules/simplexml.so.so (Error loading shared library /usr/lib/php7/modules/simplexml.so.so: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: tokenizer: Unable to initialize module
Module compiled with module API=20160303
PHP    compiled with module API=20170718
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: xmlwriter: Unable to initialize module
Module compiled with module API=20160303
PHP    compiled with module API=20170718
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/lib/php7/modules/mcrypt.so (Error relocating /usr/lib/php7/modules/mcrypt.so: spprintf: symbol not found), /usr/lib/php7/modules/mcrypt.so.so (Error loading shared library /usr/lib/php7/modules/mcrypt.so.so: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'simplexml.so' (tried: /usr/lib/php7/modules/simplexml.so (Error relocating /usr/lib/php7/modules/simplexml.so: spl_ce_Countable: symbol not found), /usr/lib/php7/modules/simplexml.so.so (Error loading shared library /usr/lib/php7/modules/simplexml.so.so: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: tokenizer: Unable to initialize module
Module compiled with module API=20160303
PHP    compiled with module API=20170718
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: xmlwriter: Unable to initialize module
Module compiled with module API=20160303
PHP    compiled with module API=20170718
These options need to match
 in Unknown on line 0

The Dockerfile has some packages that aren't present on PHP7.2 . I removed the following packages:

jorge07 commented 6 years ago

Thanks for the contribution! I'll run the builds in Docker Hub and ping you when it finishes.

jorge07 commented 6 years ago

@Lutacon you can track the build status here https://hub.docker.com/r/jorge07/alpine-php/builds/