docker-images-php
docker-images-php copied to clipboard
Memcached extension is not working in php8 images
I am trying to use php8 images but looks like memcashed extension is not working, I am getting this error: PHP Warning: PHP Startup: Unable to load dynamic library 'memcached.so' (tried: /usr/lib/php/20200930/memcached.so (/usr/lib/php/20200930/memcached.so: undefined symbol: php_msgpack_serialize), /usr/lib/php/20200930/memcached.so.so (/usr/lib/php/20200930/memcached.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP: syntax error, unexpected '(' in /etc/php/8.0/cli/conf.d/generated_conf.ini on line 2
I tried several ways to configure the extension in my docker-compose file, but nothing changed.
Anyone facing the same issue or knows how to solve it?
@VENTOURA Late answer, but I just stumble on it myself, and found the solution here : https://stackoverflow.com/questions/22927424/php-memcached-php-msgpack-serialize-in-unknown-on-line-0
=> Just add the msgpack extension, and everything should be fine.