Fix handling of strings containing \0 in SQLite.
authordaniel <daniel.kinzler@wikimedia.de>
Wed, 31 Oct 2012 14:27:57 +0000 (15:27 +0100)
committerPlatonides <platonides@gmail.com>
Fri, 2 Nov 2012 13:23:55 +0000 (14:23 +0100)
commit9205808960477ad4ab6aa20dd8145e5d3e8b2d19
tree1f115857378e22c2edeb138f370a5b9bdd7d5d2a
parent8eb98ba47bc5d55a9d9f7718c6083d4d58aded0e
Fix handling of strings containing \0 in SQLite.

This change provides a workaround and test case for a problem
in the sqlite library:

SQLite truncates strings at ASCII value 00 aka \0. Strings
containing \0 need to be represented in hexadecimal form.

Reported to PHP as bug 63419
 https://bugs.php.net/bug.php?id=63419

Change-Id: I2bbc445ffebd41e181edfc3201e6e5514de06142
includes/db/DatabaseSqlite.php
tests/phpunit/includes/db/DatabaseSqliteTest.php