Skip to content

Commit 329dfa7

Browse files
committed
[ci skip] Updated NEWS and UPGRADING
1 parent 53d7c17 commit 329dfa7

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ PHP NEWS
171171
- PDO:
172172
. Fixed setAttribute and getAttribute. (SakiTakamachi)
173173
. Implemented PDO driver-specific subclasses RFC. (danack, kocsismate)
174+
. Added support for PDO driver-specific SQL parsers. (Matteo Beccati)
174175

175176
- PDO_DBLIB:
176177
. Fixed setAttribute and getAttribute. (SakiTakamachi)
@@ -185,6 +186,7 @@ PHP NEWS
185186
- PDO_MYSQL:
186187
. Fixed setAttribute and getAttribute. (SakiTakamachi)
187188
. Added class Pdo\Mysql. (danack, kocsismate)
189+
. Added custom SQL parser. (Matteo Beccati)
188190

189191
- PDO_ODBC:
190192
. Added class Pdo\Odbc. (danack, kocsismate)
@@ -197,11 +199,13 @@ PHP NEWS
197199
. Retrieve the memory usage of the query result resource. (KentarouTakeda)
198200
. Added Pdo\Pgsql::setNoticeCallBack method to receive DB notices.
199201
(outtersg)
202+
. Added custom SQL parser. (Matteo Beccati)
200203

201204
- PDO_SQLITE:
202205
. Added class Pdo\Sqlite. (danack, kocsismate)
203206
. Fixed bug #81227 (PDO::inTransaction reports false when in transaction).
204207
(nielsdos)
208+
. Added custom SQL parser. (Matteo Beccati)
205209

206210
- PGSQL:
207211
. Added the possibility to have no conditions for pg_select. (OmarEmaraDev)

UPGRADING

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,32 @@ PHP 8.4 UPGRADE NOTES
240240
openssl_pkey_get_details as well as openssl_sign and openssl_verify were
241241
extended to support those keys.
242242

243+
- PDO:
244+
. Added support for driver specific SQL parsers. The default parser supports:
245+
- single and double quoted literals, with doubling as escaping mechanism.
246+
- two-dashes and non-nested C-style comments.
247+
248+
- PDO_MYSQL:
249+
. Added custom parser supporting:
250+
- single and double-quoted literals, with doubling and backslash as escaping
251+
mechanism
252+
- backtick literal identifiers and with doubling as escaping mechanism
253+
- two dashes followed by at least 1 whitespace, non-nested C-style comments,
254+
and hash-comments
255+
256+
- PDO_PGSQL:
257+
. Added custom parser supporting:
258+
- single and double quoted literals, with doubling as escaping mechanism
259+
- C-style "escape" string literals (E'string')
260+
- dollar-quoted string literals
261+
- two-dashes and C-style comments (non-nested)
262+
- support for "??" as escape sequence for the "?" operator
263+
264+
- PDO_SQLITE:
265+
. Added custom parser supporting:
266+
- single, double quoted, and backtick literals, with doubling as escaping mechanism
267+
- square brackets quoting for identifiers
268+
- two-dashes and C-style comments (non-nested)
243269

244270
- Phar:
245271
. Added support for the unix timestamp extension for zip archives.
@@ -355,6 +381,11 @@ PHP 8.4 UPGRADE NOTES
355381
. Calling ldap_exop() with more than 4 arguments is deprecated. Use
356382
ldap_exop_sync() instead.
357383

384+
- PDO_PGSQL:
385+
. Using escaped question marks (??) inside dollar-quoted strings is deprecated.
386+
Since PDO_PGSQL has its own SQL parser with dollar-quoted strings support, it
387+
is no longer necessary to escape question marks inside them.
388+
358389
- PgSQL:
359390
. Calling pgsql_fetch_result() with 2 arguments is deprecated. Use the
360391
3-parameter signature with a null $row parameter instead.

0 commit comments

Comments
 (0)