Call to undefined function mysqli_init()

哆啦阿梦發表於2024-09-03

當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資料夾

相關文章