php-src/ext/pdo_odbc/tests
Christoph M. Becker c9eafc1954
Fix GH-16450: PDO_ODBC can inject garbage into field values
A previous bug fix[1] relied on ODBC drivers to properly count down the
`StrLen_or_IndPtr` argument for consecutive calls to `SQLGetData()`.
Apparently, not all drivers handle this correctly, so we cannot assert
they do.  Instead we fall back to the old behavior for drivers which
would violate the assertion.

A test against SQLServer (which we currently use in CI) would not make
sense, since the respective drivers do not exhibit that behavior.
Instead we target the regression test especially to a MS Access
database.

Since there is apparently no way to easily create an MS Access database
programmatically, we commit a minimal empty DB which is used for the
regression test, and could also be used by other test cases.

[1] <bccca0b53a>

Closes GH-16587.
2024-10-31 16:15:17 +01:00
..
autocommit.phpt Fix GH-12767: Fixed to be able to change autocommit mode using setAttribute 2023-12-18 00:26:32 +00:00
autocommit_change_mode.phpt add PDO::ATTR_AUTOCOMMIT to getAttribute 2023-12-18 00:26:32 +00:00
bug44643.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
bug67465.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
bug80783.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
bug80783a.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
common.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
CONFLICTS Prevent further potential test conflicts 2019-05-14 13:19:58 +02:00
get_attribute_server.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
gh9372.phpt Fix GH-9372: HY010 when binding overlong parameter 2022-10-19 11:37:05 +02:00
gh16450.phpt Fix GH-16450: PDO_ODBC can inject garbage into field values 2024-10-31 16:15:17 +01:00
long_columns.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
max_columns.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
test.mdb Fix GH-16450: PDO_ODBC can inject garbage into field values 2024-10-31 16:15:17 +01:00