[php-src] PR #13956: Fix GH-13952: sqlite PDO::quote silently corrupts strings with null bytes
| From: | nielsdos | Date: | Sat, 13 Apr 2024 11:30:50 +0000 |
| Subject: | [php-src] PR #13956: Fix GH-13952: sqlite PDO::quote silently corrupts strings with null bytes | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25733@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13956
Author: nielsdos
The built-in way to quote string using sqlite3's custom printf does not support NULL bytes in a
string. Reimplement it ourselves. This also gets rid of the integer-based length limit.