Skip to content

Commit 51d51b5

Browse files
committed
Convert resources to objects in ext/pgsql
1 parent 8667dc9 commit 51d51b5

18 files changed

+887
-942
lines changed

NEWS

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

94+
- PgSQL:
95+
. Convert resource<pgsql link> to object \PgSql. (Máté)
96+
. Convert resource<pgsql result> to object \PgSqlResult. (Máté)
97+
. Convert resource<pgsql large object> to object \PgSqlLob. (Máté)
98+
. Convert resource<pgsql string> to object \PgsqlString. (Máté)
99+
94100
- PSpell:
95101
. Convert resource<pspell> to object \PSpell. (Sara)
96102
. Convert resource<pspell config> to object \PSpellConfig. (Sara)

UPGRADING

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

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

0 commit comments

Comments
 (0)