diff --git a/ext/sqlite/tests/sqlite_014.phpt b/ext/sqlite/tests/sqlite_014.phpt new file mode 100755 index 00000000000..9711a9963b3 --- /dev/null +++ b/ext/sqlite/tests/sqlite_014.phpt @@ -0,0 +1,118 @@ +--TEST-- +sqlite: fetch all +--INI-- +sqlite.assoc_case=0 +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +unbuffered twice +array(3) { + [0]=> + array(1) { + [0]=> + string(3) "one" + } + [1]=> + array(1) { + [0]=> + string(3) "two" + } + [2]=> + array(1) { + [0]=> + string(5) "three" + } +} + +Notice: sqlite_fetch_all(): One or more rowsets were already returned in %ssqlite_014.php on line %d +array(0) { +} +unbuffered with fetch_array +array(1) { + [0]=> + string(3) "one" +} +array(2) { + [0]=> + array(1) { + [0]=> + string(3) "two" + } + [1]=> + array(1) { + [0]=> + string(5) "three" + } +} +buffered +array(3) { + [0]=> + array(1) { + [0]=> + string(3) "one" + } + [1]=> + array(1) { + [0]=> + string(3) "two" + } + [2]=> + array(1) { + [0]=> + string(5) "three" + } +} +bool(false) +array(3) { + [0]=> + array(1) { + [0]=> + string(3) "one" + } + [1]=> + array(1) { + [0]=> + string(3) "two" + } + [2]=> + array(1) { + [0]=> + string(5) "three" + } +} +DONE!