我正在运行Symfony,但它没有找到pdo驱动程序,并且演示应用程序抛出了SQLite3异常的例外。
配置检查员说:
PDO应安装一些驱动程序(目前可用:无) 安装PDO驱动程序(Doctrine必需)。
但在php.ini中我有:
延长= php_pdo_mysql.dll
延长= php_pdo_sqlite.dll
延长= php_sqlite3.dll
最后,symfony应用程序说:
// Check if SQLite is enabled
if ($isDriverException && $this->isSQLitePlatform() && !extension_loaded('sqlite3')) {
$event->setException(new \Exception('PHP extension "sqlite3" must be enabled because, by default, the Symfony Demo application uses SQLite to store its information.'));
}
但我知道默认安装PHP 5.3+ 我在安装了PHP7.1的Windows上运行