刚刚升级到 PHP 7.4.1,然后是:https ://dev.to/pushkaranand/upgrading-to-php-7-4-26dg
升级后,
Code-igniter 应用程序抛出错误,例如:
Type: Error
Message: Call to undefined function mysqli_init()
Filename: /var/www/html/CI_PROJECT/system/database/drivers/mysqli/mysqli_driver.php
试过:通过取消注释php.ini(/etc/php/7.4/apache2/php.ini)中的以下行:
extension=mysqli
extension=/path/to/extension/mysqli.so
mysqli.allow_local_infile = On
然后,做了
systemctl restart apache2
请用适当的解决方案指导我。