Skip to content

Commit a7f5bed

Browse files
committed
test
1 parent 86a2e4d commit a7f5bed

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ext/sqlite3/tests/gh20699.phpt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--TEST--
2+
GH-20699 (SQLite3Result fetchArray return array|false, null returned)
3+
--EXTENSIONS--
4+
sqlite3
5+
--CREDITS--
6+
plusminmax
7+
--FILE--
8+
<?php
9+
$db = new SQLite3(':memory:');
10+
$db->prepare('BEGIN;')->execute()->fetchArray();
11+
?>
12+
--EXPECTF--
13+
Warning: SQLite3Result::fetchArray(): Unable to execute statement: cannot start a transaction within a transaction in %s on line %d

0 commit comments

Comments
 (0)