php7-mysqlnd package doesn't contain mysqli::poll function causing warnings
I’m getting errors from php7 mysqli extension in docker container running alpine. I guess this could be reproduced in non docker container environments as well.
I’m using edge version of alpine
After installing following packages:
apk add php7 php7-fpm php7-json php7-zlib php7-xml php7-pdo php7-phar php7-openssl \
php7-pdo_mysql php7-mysqli php7-mysqlnd \
php7-gd php7-mcrypt \
php7-curl php7-opcache php7-ctype \
php7-intl php7-bcmath php7-dom php7-xmlreader --update-cache --repository http://dl-4.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
After the installation I tried to use php7 for simple hello world script:
root@:/# echo "<?php echo 'hello';" >> test.php
root@:/# php7 test.php
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php7/modules/mysqli.so' - Error relocating /usr/lib/php7/modules/mysqli.so: mysqlnd_poll: symbol not found in Unknown on line 0
First I got 2 errors : mysqlnd_poll and mysqlnd_init. mysqlnd_init was fixed by installing php7-mysqlnd so I guess the same package should take care of mysqlnd_poll too.
Is there something I’m doing wrong?
My Project && Dockerfile can be found here: https://github.com/onnimonni/alpine-php7-wp/blob/master/Dockerfile
(from redmine: issue id 5111, created on 2016-02-12, closed on 2016-05-31)
- Changesets:
- Revision ae6d8820 by Valery Kartel on 2016-02-23T07:45:54Z:
testing/php7: fix mysqli, mysqlnd and pdo_mysql extensions
- mysqli and pdo_mysql now uses system libmysqlclient library
- mysqlnd now has mysqli as a backend
- fixes #5111