PGSQL_LIBPQ_VERSION_STR

ConstantDeprecated in PHP 8.0

PGSQL_LIBPQ_VERSION_STR — Prior to PHP 8.0.0, the long libpq version that includes compiler information. As of PHP 8.0.0, the value is identical to PGSQL_LIBPQ_VERSION, and using PGSQL_LIBPQ_VERSION_STR is deprecated.

PHP 5.3
PHP 5.4
Added
PHP 5.5-5.6
PHP 7
PHP 8.0
Deprecated
PHP 8.1
PHP 8.2-8.3
PHP 8.4
PHP 8.5
PHP 8.6
/** @deprecated Constant PGSQL_LIBPQ_VERSION_STR is deprecated since 8.0, as it is the same as PGSQL_LIBPQ_VERSION */
// Dynamically generated at compile or configure step
PGSQL_LIBPQ_VERSION_STR = <PHP-PGSQL_LIBPQ_VERSION_STR>

Changes to the PGSQL_LIBPQ_VERSION_STR Constant

PHP 8.0

  • Constant deprecated
var_dump(PGSQL_LIBPQ_VERSION_STR);
// __DYNAMIC__PgSQL LibPQ Version
Constant PGSQL_LIBPQ_VERSION_STR is deprecated

PHP 5.4

  • Constant added

PGSQL_LIBPQ_VERSION_STR Constant Availability

PHP VersionAvailability
PHP 8.6Upcoming Release Yes Deprecated
PHP 8.5Supported (Latest) Yes Deprecated
PHP 8.4Supported Yes Deprecated
PHP 8.3Security-Fixes Only Yes Deprecated
PHP 8.2Security-Fixes Only Yes Deprecated
PHP 8.1Unsupported Yes Deprecated
PHP 8.0Unsupported Yes Deprecated
PHP 7.4Unsupported Yes
PHP 7.3Unsupported Yes
PHP 7.2Unsupported Yes
PHP 7.1Unsupported Yes
PHP 7.0Unsupported Yes
PHP 5.6Unsupported Yes
PHP 5.5Unsupported Yes
PHP 5.4Unsupported Yes
PHP 5.3Unsupported No