Bug #80783 [Ver->Csd]: PDO ODBC truncates BLOB records at every 256th byte

From: Date: Thu, 18 Mar 2021 14:29:30 +0000
Subject: Bug #80783 [Ver->Csd]: PDO ODBC truncates BLOB records at every 256th byte
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232849@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80783&edit=1 ID: 80783 Updated by: cmb@php.net Reported by: horvath dot szabolcs at t-systems dot hu Summary: PDO ODBC truncates BLOB records at every 256th byte -Status: Verified +Status: Closed Type: Bug Package: PDO ODBC Operating System: Red Hat Enterprise Linux Server PHP Version: 7.3.27 Assigned To: cmb Block user comment: N Private report: N New Comment: Automatic comment on behalf of cmbecker69@gmx.de Revision: http://git.php.net/?p=php-src.git;a=commit;h=bccca0b53aa60a62e2988c750fc73c02d109e642 Log: Fix #80783: PDO ODBC truncates BLOB records at every 256th byte Previous Comments: ------------------------------------------------------------------------ [2021-03-15 12:52:37] cmb@php.net Related To: Bug #80868 ------------------------------------------------------------------------ [2021-02-23 11:43:25] cmb@php.net Thanks for the swift reply and confirmation! Note, though, that the PR has not yet been merged, and I'm actually surprised that it fixes the issue for you, since your ODBC trace hints at missing trailing NUL bytes, for what the patch doesn't cater to. Particularly, there is likely an assertion failure with debug builds. ------------------------------------------------------------------------ [2021-02-23 08:20:28] horvath dot szabolcs at t-systems dot hu Thank for your quick response! It seems the bug has been fixed. Nice job. Anyone coming from RHEL systems: I opened a support ticket (Case 02876261) asking for a backport to their SCL tree. ------------------------------------------------------------------------ [2021-02-22 14:24:02] cmb@php.net Could you please *test* the patch? Note though, that PHP 7.3 is no longer actively supported, so the patch targets PHP 7.4. It may still work with PHP 7.3, though. ------------------------------------------------------------------------ [2021-02-22 14:21:49] cmb@php.net The following pull request has been associated: Patch Name: Fix #80783: PDO ODBC truncates BLOB records at every 256th byte On GitHub: https://github.com/php/php-src/pull/6716 Patch: https://github.com/php/php-src/pull/6716.patch ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=80783 -- Edit this bug report at https://bugs.php.net/bug.php?id=80783&edit=1

« previous php.bugs (#232849) next »