summaryrefslogtreecommitdiff
path: root/ext/sqlite/tests/bug35248.phpt
blob: 4898a4142e88126b17f201a03e365fda51f2e30a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #35248 (sqlite_query does not return parse error message)
--SKIPIF--
<?php if (!extension_loaded("sqlite")) print "skip"; ?>
--FILE--
<?php
	$db = sqlite_open(":memory:");
	$res = @sqlite_query($db, "asdfesdfa", SQLITE_NUM, $err);
	var_dump($err);
	$res = @sqlite_unbuffered_query($db, "asdfesdfa", SQLITE_NUM, $err);
	var_dump($err);
?>
--EXPECT--
string(30) "near "asdfesdfa": syntax error"
string(30) "near "asdfesdfa": syntax error"