Skip to content

Commit 108ec66

Browse files
committed
Convert resources to objects in ext/pgsql
1 parent b5c0e7e commit 108ec66

18 files changed

+887
-937
lines changed

NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ PHP NEWS
9898
. PDO SQLite:
9999
. Fixed bug #38334 (Proper data-type support for PDO_SQLITE). (Nikita)
100100

101+
- PgSQL:
102+
. Convert resource<pgsql link> to object \PgSql. (Máté)
103+
. Convert resource<pgsql result> to object \PgSqlResult. (Máté)
104+
. Convert resource<pgsql large object> to object \PgSqlLob. (Máté)
105+
. Convert resource<pgsql string> to object \PgsqlString. (Máté)
106+
101107
- PSpell:
102108
. Convert resource<pspell> to object \PSpell. (Sara)
103109
. Convert resource<pspell config> to object \PSpellConfig. (Sara)

UPGRADING

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@ PHP 8.1 UPGRADE NOTES
120120
types. You can restore the previous behavior by enabling the
121121
PDO::ATTR_STRINGIFY_FETCHES option.
122122

123+
- PgSQL:
124+
. The PgSQL functions now accept and return, respectively, PgSql objects
125+
instead of "pgsql link" resources. Return value checks using is_resource()
126+
should be replaced with checks for `false`.
127+
. The PgSQL functions now accept and return, respectively, PgSqlResult
128+
objects instead of "pgsql result" resources. Return value checks using
129+
is_resource() should be replaced with checks for `false`.
130+
. The PgSQL functions now accept and return, respectively, PgSqlLob
131+
objects instead of "pgsql large object" resources. Return value checks
132+
using is_resource() should be replaced with checks for `false`.
133+
. The PgSQL functions now accept and return, respectively, PgSqlString
134+
objects instead of "pgsql string" resources. Return value checks
135+
using is_resource() should be replaced with checks for `false`.
136+
123137
- Standard:
124138
. version_compare() no longer accepts undocumented operator abbreviations.
125139
. htmlspecialchars(), htmlentities(), htmlspecialchars_decode(),

0 commit comments

Comments
 (0)