[php-src] Issue #8516: PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli'
| From: | amustaque97 | Date: | Sun, 08 May 2022 13:22:06 +0000 |
| Subject: | [php-src] Issue #8516: PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241439@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8516
Author: amustaque97
### Description
I have enabled
mysqli extension for php 8.1 on ubuntu 20.04.
After enabling extension I'm getting the following error:
```console
PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried:
/usr/lib/php/20210902/mysqli (/usr/lib/php/20210902/mysqli: cannot open shared object file: No such
file or directory), /usr/lib/php/20210902/mysqli.so (/usr/lib/php/20210902/mysqli.so: undefined
symbol: mysqlnd_global_stats)) in Unknown on line 0
```
I have installed the current packages.
* PHP 8.1
* PHP MySQL (php8.1-mysql)
When I do php --ini. I get the following output.
```console
```
### PHP Version
PHP 8.1.2
### Operating System
Ubuntu 20.04