Skip to content

Commit 109fa14

Browse files
committed
Notes on behaviour changes in ODBC for 8.2
1 parent c542668 commit 109fa14

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

UPGRADING

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ PHP 8.2 UPGRADE NOTES
1919
1. Backward Incompatible Changes
2020
========================================
2121

22+
- ODBC:
23+
. The ODBC extension now escapes the username and password for the case when
24+
both a connection string and username/password are passed, and the string
25+
must be appended to. Before, user values containing values needing escaping
26+
could have created a malformed connection string, or injected values from
27+
user-provided data. The escaping rules should be identical to the .NET BCL
28+
DbConnectionOptions behaviour.
29+
30+
- PDO_ODBC:
31+
. The PDO_ODBC extension also escapes the username and password when a
32+
connection string is passed. See the change to the ODBC extension for
33+
further details.
34+
2235
- Standard:
2336
. strtolower() and strtoupper() are no longer locale-sensitive. They now
2437
perform ASCII case conversion, as if the locale were "C". Use
@@ -68,6 +81,13 @@ PHP 8.2 UPGRADE NOTES
6881
possible to use numbered subpattern references, and the matches array will
6982
still contain numbered results.
7083

84+
- Standard:
85+
. Added odbc_connection_string_is_quoted, odbc_connection_string_should_quote,
86+
and odbc_connection_string_quote. These are primarily used behind the scenes
87+
in the ODBC and PDO_ODBC extensions, but is exposed to userland for easier
88+
unit testing, and for user applications and libraries to perform quoting
89+
themselves.
90+
7191
========================================
7292
3. Changes in SAPI modules
7393
========================================

0 commit comments

Comments
 (0)