Use global constant if available for libpq version (#11684)
parent
9a407b5ad3
commit
c827c93b62
|
@ -449,6 +449,12 @@ class PlatformRepository extends ArrayRepository
|
|||
break;
|
||||
|
||||
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':
|
||||
$info = $this->runtime->getExtensionInfo($name);
|
||||
|
||||
|
|
|
@ -998,6 +998,8 @@ pgsql.auto_reset_persistent => Off => Off
|
|||
pgsql.ignore_notice => Off => Off
|
||||
pgsql.log_notice => Off => Off',
|
||||
['lib-pgsql-libpq' => '12.2'],
|
||||
[],
|
||||
[['PGSQL_LIBPQ_VERSION', null, '12.2']],
|
||||
],
|
||||
'pdo_pgsql' => [
|
||||
'pdo_pgsql',
|
||||
|
|
Loading…
Reference in New Issue