Skip to content

Commit 2a7fd13

Browse files
committed
add test
1 parent e9cbbd8 commit 2a7fd13

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--TEST--
2+
SQLite3_stmt::busy
3+
--EXTENSIONS--
4+
sqlite3
5+
--SKIPIF--
6+
<?php
7+
$version = SQLite3::version();
8+
if ($version['versionNumber'] < 3007004) die("skip");
9+
?>
10+
--FILE--
11+
<?php
12+
13+
require_once(__DIR__ . '/new_db.inc');
14+
$db->exec('CREATE TABLE test_busy (a string);');
15+
$db->exec('INSERT INTO test_busy VALUES ("interleaved"), ("statements")');
16+
$st = $db->prepare('SELECT a FROM test_busy');
17+
var_dump($st->busy());
18+
$r = $st->execute();
19+
$r->fetchArray();
20+
var_dump($st->busy());
21+
?>
22+
--EXPECT--
23+
bool(false)
24+
bool(true)

0 commit comments

Comments
 (0)