diff options
author | SVN Migration <svn@php.net> | 2004-04-22 22:29:42 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2004-04-22 22:29:42 +0000 |
commit | a007611a4f0b8142d98810f1dadf9337bc4e10ae (patch) | |
tree | 868a19badf3a3a1f5fe2017cb1d4b4aaf299e4b0 | |
parent | f9073ef5a0dc10817e4205d7eb7b81cce8a19c45 (diff) | |
download | php-git-a007611a4f0b8142d98810f1dadf9337bc4e10ae.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PECL_4_3'.
-rwxr-xr-x | ext/sqlite/tests/bug28112.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/sqlite/tests/bug28112.phpt b/ext/sqlite/tests/bug28112.phpt new file mode 100755 index 0000000000..551e61764e --- /dev/null +++ b/ext/sqlite/tests/bug28112.phpt @@ -0,0 +1,14 @@ +--TEST-- +#28112 (sqlite_query() crashing apache on malformed query) +--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=== |