Skip to content

Commit 7f147f2

Browse files
committed
ext/pdo_pgsql: Deprecate PDO::PGSQL_TRANSACTION* constants.
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#extpdo_deprecations
1 parent 8f1a627 commit 7f147f2

File tree

2 files changed

+43
-6
lines changed

2 files changed

+43
-6
lines changed

ext/pdo_pgsql/pdo_pgsql.stub.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,23 @@ class Pgsql extends \PDO
1919
#endif
2020

2121
/** @cvalue PGSQL_TRANSACTION_IDLE */
22+
#[\Deprecated(since: '8.5', message: "as it has no effect")]
2223
public const int TRANSACTION_IDLE = UNKNOWN;
2324

2425
/** @cvalue PGSQL_TRANSACTION_ACTIVE */
26+
#[\Deprecated(since: '8.5', message: "as it has no effect")]
2527
public const int TRANSACTION_ACTIVE = UNKNOWN;
2628

2729
/** @cvalue PGSQL_TRANSACTION_INTRANS */
30+
#[\Deprecated(since: '8.5', message: "as it has no effect")]
2831
public const int TRANSACTION_INTRANS = UNKNOWN;
2932

3033
/** @cvalue PGSQL_TRANSACTION_INERROR */
34+
#[\Deprecated(since: '8.5', message: "as it has no effect")]
3135
public const int TRANSACTION_INERROR = UNKNOWN;
3236

3337
/** @cvalue PGSQL_TRANSACTION_UNKNOWN */
38+
#[\Deprecated(since: '8.5', message: "as it has no effect")]
3439
public const int TRANSACTION_UNKNOWN = UNKNOWN;
3540

3641
public function escapeIdentifier(string $input): string {}

ext/pdo_pgsql/pdo_pgsql_arginfo.h

Lines changed: 38 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)