Skip to content

Commit 777ebcf

Browse files
committed
Convert resources to objects in ext/pgsql
1 parent cd40fc3 commit 777ebcf

18 files changed

+881
-944
lines changed

NEWS

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

51+
- PgSQL:
52+
. Convert resource<pgsql link> to object \PgSql. (Máté)
53+
. Convert resource<pgsql result> to object \PgSqlResult. (Máté)
54+
. Convert resource<pgsql large object> to object \PgSqlLob. (Máté)
55+
. Convert resource<pgsql string> to object \PgsqlString. (Máté)
56+
5157
- PSpell:
5258
. Convert resource<pspell> to object \PSpell. (Sara)
5359
. Convert resource<pspell config> to object \PSpellConfig. (Sara)

UPGRADING

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,20 @@ PHP 8.1 UPGRADE NOTES
115115
types. You can restore the previous behavior by enabling the
116116
PDO::ATTR_STRINGFIY_FETCHES option.
117117

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

0 commit comments

Comments
 (0)