I'm using Arch Linux os.
I have a container running a php project and I need to have gmp and curl extensions enabled.
My container is based from an Alpine image and I can install the extensions using docker exec {container-name} apk add php-gmp php-curl
.
Then if I run docker exec {container-name} php -m
to display my extensions the console prints gmp
and curl
. Great this is all good, I also have the extensions enabled in the php.ini file running inside the same container.
But if I go to a controller and return extension_loaded('gmp')
it prints false!
What am I missing?