Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47254 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7297 invoked from network); 14 Mar 2010 07:57:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2010 07:57:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=jess@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jess@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.185 as permitted sender) X-PHP-List-Original-Sender: jess@zend.com X-Host-Fingerprint: 212.25.124.185 il-mr1.zend.com Received: from [212.25.124.185] ([212.25.124.185:47003] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 98/0E-15916-6E69C9B4 for ; Sun, 14 Mar 2010 02:57:27 -0500 Received: from il-gw1.zend.com (unknown [10.1.1.21]) by il-mr1.zend.com (Postfix) with ESMTP id F072750475; Sun, 14 Mar 2010 09:38:14 +0200 (IST) Received: from [10.1.2.102] ([10.1.2.102]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 14 Mar 2010 09:57:22 +0200 Message-ID: <4B9C96E2.8060500@zend.com> Date: Sun, 14 Mar 2010 09:57:22 +0200 User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 To: Mark Karpeles CC: PHP Developers Mailing List References: <1268552350.11885.76099.camel@localhost> In-Reply-To: <1268552350.11885.76099.camel@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 14 Mar 2010 07:57:22.0512 (UTC) FILETIME=[FA707D00:01CAC34B] Subject: Re: [PHP-DEV] Req #51295: busyTimeout method for SQLite3 From: jess@zend.com (Jess Portnoy) Hello Mark, Note that while indeed sqlite3_busy_timeout() is not extended by the SQLite3 and PDO_SQLITE extensions, it is called internally in ext/pdo_sqlite/sqlite_driver.c. I think it is a good idea to extend it but also, that if you do, it should probably also be done for PDO_SQLITE as it may be useful there as well. May the source be with you, Best regards, Jess Portnoy Mark Karpeles wrote: > 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/51295 > https://ookoo.org/svn/snip/php_5_3-sqlite3-busytimeout-method.patch > > Any comment welcome. > > > Mark > > >