Hello,
I've been encountering a problem with SELECT queries and SQLite3 as load
was growing on my system. From times to times I was getting this error:
Warning: SQLite3Stmt::execute(): Unable to execute statement: database
is locked
After searching on google I saw I should call sqlite3_busy_timeout() and
found out that there was no way to call it from the SQLite3 extension
(which is new to PHP 5.3.x).
Here's a patch that will add this method to the SQLite3 class:
http://bugs.php.net/51295https://ookoo.org/svn/snip/php_5_3-sqlite3-busytimeout-method.patch
Any comment welcome.
Mark