summaryrefslogtreecommitdiff
path: root/ext/sqlite/tests/bug28112.phpt
blob: f3e9b8b9ec05c94c70e0cd1271a6eafb4e0530f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #28112 (sqlite_query() crashing apache on malformed query)
--SKIPIF--
<?php if (!extension_loaded("sqlite")) print "skip"; ?>
--FILE--
<?php

if (!($db = sqlite_open(":memory:", 666, $error))) die ("Couldn't open the database");
sqlite_query($db, "create table frob (foo INTEGER PRIMARY KEY, bar text);");
$res = @sqlite_array_query($db, "");

?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
===DONE===