Thanks for pointing out, I understand better now... But still it's not ideal...
On ubuntu xenial, the libmysqlclient package I have is libmysqlclient20 with proposed versions:
- 5.7.19-0ubuntu0.16.04.1 (from xenial update - this is what I have on my test system)
- 5.7.11-0ubuntu6 (from xenial)
See here.
I don't remember installing it (generally just using: "sudo apt install mariadb-server libmariadbclient-dev" with the 10.2 ppa). But I'm pretty sure it might have happened when I installed 'mysql-workbench-community'. Needs more tests to be sure. Anyway my php is using 'mysqlnd', see below:
FYI tested PHP versions are PHP "7.1.8-2+ubuntu16.04.1+deb.sury.org+4" and "7.2.0beta3" (both from ondrej ppa).
Important, for PHP7.1 the client is 'mysqlnd 5.0.12-dev - 20150407' (not dynamically linked to libmariadb-dev). Pretty usual.
Anyway, to be sure I attempted installing 'libmysqlclient18' (from mariadb -10.2.8+maria~xenial). As expected it does not help.
So if I understand, it would only work if the mysqli extension is linked to lib<maria>-client (not mysqlnd) ?
Not so simple, mmm.
Let me know, if there's something that could help.
PS:
1. BTW, "select version()" gives a nice '10.2.8-MariaDB-10.2.8+maria~xenial-log'. But I don't want to add an extra query to doctrine.
2. I guess the problem should be solved by using the libmysql-client from mariadb instead of mysqlnd. In another project I was seeing improvements over mysqlnd. Not only with speed but also detection of metadata: see 'here'. Anyway this kind of setup is pretty rare in my experience. Most use mysqlnd.
It was an intentional change made in scope of
MDEV-13132. Does it cause any troubles?