We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86a2e4d commit a7f5bedCopy full SHA for a7f5bed
ext/sqlite3/tests/gh20699.phpt
@@ -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