diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2021-02-25 14:38:42 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2021-03-18 15:13:27 +0100 |
commit | bccca0b53aa60a62e2988c750fc73c02d109e642 (patch) | |
tree | 51168df2cd893a5500c390b5c7de3c792e3deec5 /ext/session/tests | |
parent | 4be867e9103a415c598d5a15f95fec274d1b7825 (diff) | |
download | php-git-bccca0b53aa60a62e2988c750fc73c02d109e642.tar.gz |
Fix #80783: PDO ODBC truncates BLOB records at every 256th byte
It is not guaranteed, that the driver inserts only a single NUL byte at
the end of the buffer. Apparently, there is no way to find out the
actual data length in the buffer after calling `SQLGetData()`, so we
adjust after the next `SQLGetData()` call.
We also prevent PDO::ODBC_ATTR_ASSUME_UTF8 from fetching garbage, by
fetching all chunks with the same C type.
Closes GH-6716.
Diffstat (limited to 'ext/session/tests')
0 files changed, 0 insertions, 0 deletions