[php-src] PR #13962: SQLite pdo::quote use x'hex' syntax for null bytes
| From: | divinity76 | Date: | Sun, 14 Apr 2024 17:16:51 +0000 |
| Subject: | [php-src] PR #13962: SQLite pdo::quote use x'hex' syntax for null bytes | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25744@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13962
Author: divinity76
Implements x'hex' encoding in pdo::quote for handling strings with null bytes,
providing a reliable workaround for issue GH-13952.
An alternative fix is discussed in PR #13956
PR #13956 does something interesting, it avoids the overhead of copying to/from sqlite3_snprintf,
probably speeding up PDO::quote,
but right now I just want to keep things simple.