Call to undefined function mysqli_init()

当ci3使用PHP8.2,出现问题

 

An uncaught Exception was encountered

Type: Error

Message: Call to undefined function mysqli_init()

Filename: D:\www\ci3\system\database\drivers\mysqli\mysqli_driver.php

Line Number: 135

Backtrace:

File: D:\www\ci3\index.php
Line: 289
Function: require_once

 

解决办法:

找到extension_dir,修改为当前PHP版本的ext文件夹

 

posted @ 2024-09-03 08:58  哆啦阿梦  阅读(16)  评论(0编辑  收藏  举报