thecodingmachine / docker-images-php

A set of PHP Docker images
MIT License
785 stars 138 forks source link

Memcached extension is not working in php8 images #321

Open VENTOURA opened 2 years ago

VENTOURA commented 2 years ago

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? Screenshot 2022-08-29 at 14 43 18

Screenshot 2022-08-29 at 14 43 38
McLone commented 1 year ago

@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.