Bug #55377 [Fbk->NoF]: Can't unlock SQLite3 when error occurs in PDOStatement iterating.
| From: | php-bugs at lists dot php dot net | Date: | Sun, 13 Jun 2021 04:22:08 +0000 |
| Subject: | Bug #55377 [Fbk->NoF]: Can't unlock SQLite3 when error occurs in PDOStatement iterating. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-234374@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55377&edit=1
ID: 55377
Updated by: php-bugs@lists.php.net
Reported by: riverfish323 at yahoo dot co dot jp
Summary: Can't unlock SQLite3 when error occurs in PDOStatement
iterating.
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: PDO SQLite
Operating System: WindowsXP SP3
PHP Version: 5.3.6
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2021-06-02 14:51:15] cmb@php.net
I cannot reproduce this with PHP 7.4 and sqlite3 3.31.1; maybe an
issue with an old PHP or SQLite3 version?
------------------------------------------------------------------------
[2011-08-06 18:01:14] riverfish323 at yahoo dot co dot jp
Description:
------------
Sorry for strange Engrish.
SQLite3 database didn't unlock, when fatal error occurs while iterating over a PDOStatement
object using foreach-loop.
Test script:
---------------
$con = new PDO('sqlite:test.db');
$con->query('CREATE TABLE IF NOT EXISTS t (c INT)');
$con->query('INSERT INTO t VALUES (1)');
foreach ($con->query('SELECT * FROM t LIMIT 1') as $row) {
trigger_error('abort', E_USER_ERROR); # test.db not unlocking
}
Expected result:
----------------
Will not be able to use some SQL statements. In addition PHP will be timeout.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55377&edit=1