Working with other extension gotchas
PHP 8 introduced a number of other noteworthy changes to several PHP extensions other than the ones already discussed in this chapter. As we have stressed time and again in this book, it's extremely important for your future career as a PHP developer to be aware of these changes.
Let's first have a look at changes to database extensions.
New database extension operating system library requirements
Any developer using MySQL, MariaDB, PostgreSQL, or PHP Data Objects (PDO) needs to be aware of new requirements for supporting operating system libraries. The following table summarizes the new minimum versions required in PHP 8:
As you can see from the preceding table, there are two main library changes. libpq
affects both the PostgreSQL
extension and the driver for the PDO
extension. libmysqlclient
is the library used by both the MySQL Improved (MySQLi...