mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-18 13:24:37 -04:00
Add info about PDO::ATTR_CLIENT_VERSION (#7591)
Help with https://github.com/FreshRSS/FreshRSS/issues/7586
This commit is contained in:
committed by
GitHub
parent
e24d9f39fb
commit
52848d414d
@@ -212,6 +212,11 @@ class FreshRSS_DatabaseDAO extends Minz_ModelPdo {
|
||||
return $version;
|
||||
}
|
||||
|
||||
public function pdoClientVersion(): string {
|
||||
$version = $this->pdo->getAttribute(PDO::ATTR_CLIENT_VERSION);
|
||||
return is_string($version) ? $version : '';
|
||||
}
|
||||
|
||||
final public function isMariaDB(): bool {
|
||||
// MariaDB includes its name in version, but not MySQL
|
||||
return str_contains($this->version(), 'MariaDB');
|
||||
|
||||
@@ -38,6 +38,9 @@
|
||||
<dd><?= htmlspecialchars(FreshRSS_Context::systemConf()->db['type'], ENT_NOQUOTES, 'UTF-8') ?></dd>
|
||||
<?php $databaseDAO = FreshRSS_Factory::createDatabaseDAO(); ?>
|
||||
<dd><?= htmlspecialchars($databaseDAO->version(), ENT_NOQUOTES, 'UTF-8') ?></dd>
|
||||
<?php if ($databaseDAO->pdoClientVersion() !== $databaseDAO->version()): ?>
|
||||
<dd><?= htmlspecialchars($databaseDAO->pdoClientVersion(), ENT_NOQUOTES, 'UTF-8') ?></dd>
|
||||
<?php endif; ?>
|
||||
<dt><?= _t('index.about.bug_reports.environment_information.server_software') ?></dt>
|
||||
<dd>
|
||||
<?= is_string($_SERVER['SERVER_SOFTWARE'] ?? null) ? $_SERVER['SERVER_SOFTWARE'] : '' ?><br />
|
||||
|
||||
Reference in New Issue
Block a user