1
0
Fork 0

Use global constant if available for libpq version (#11684)

pull/11687/head
Dan Wallis 2023-10-11 13:19:31 +01:00 committed by GitHub
parent 9a407b5ad3
commit c827c93b62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -449,6 +449,12 @@ class PlatformRepository extends ArrayRepository
break; break;
case 'pgsql': case 'pgsql':
if ($this->runtime->hasConstant('PGSQL_LIBPQ_VERSION')) {
$this->addLibrary('pgsql-libpq', $this->runtime->getConstant('PGSQL_LIBPQ_VERSION'), 'libpq for pgsql');
break;
}
// intentional fall-through to next case...
case 'pdo_pgsql': case 'pdo_pgsql':
$info = $this->runtime->getExtensionInfo($name); $info = $this->runtime->getExtensionInfo($name);

View File

@ -998,6 +998,8 @@ pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off', pgsql.log_notice => Off => Off',
['lib-pgsql-libpq' => '12.2'], ['lib-pgsql-libpq' => '12.2'],
[],
[['PGSQL_LIBPQ_VERSION', null, '12.2']],
], ],
'pdo_pgsql' => [ 'pdo_pgsql' => [
'pdo_pgsql', 'pdo_pgsql',