Merge pull request #6795 from rxu/ticket/17488

[ticket/17488] Fix PHP error when MySQL PDO driver is not enabled
This commit is contained in:
Marc Alexander 2025-04-19 08:51:45 +02:00 committed by GitHub
commit ef010db26c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -164,7 +164,7 @@ class connection_parameter_factory
],
];
if ($params['driver'] === 'pdo_mysql')
if ($params['driver'] === 'pdo_mysql' && extension_loaded('pdo_mysql'))
{
$enrichment_tags['pdo_mysql'][\PDO::MYSQL_ATTR_FOUND_ROWS] = true;
}