The sqlite3_FOO() interfaces used by frontend/php/ are obsolete. There are a number of PHP/sqlite interfaces as detailed in this message:
The "php-sqlite3" package has been superseded by the SQLite3 class.
I've attached a patch which switches the frontend to the proper sqlite interface. This applies against the 1.8.8 sources.