summaryrefslogtreecommitdiff
path: root/ext/sqlite/tests
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-09-10 19:42:12 +0000
committerAntony Dovgal <tony2001@php.net>2006-09-10 19:42:12 +0000
commit4dd2a598f36ec21db31cc695cb5a2286e482e7db (patch)
treeb275751dd6a1d2acfb33b0d6bd001a5a39c87d35 /ext/sqlite/tests
parent0ce31d14f508c2e2975c9b85586964120abc48fb (diff)
downloadphp-git-4dd2a598f36ec21db31cc695cb5a2286e482e7db.tar.gz
add new test
Diffstat (limited to 'ext/sqlite/tests')
-rw-r--r--ext/sqlite/tests/bug38759.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/sqlite/tests/bug38759.phpt b/ext/sqlite/tests/bug38759.phpt
new file mode 100644
index 0000000000..ae5959d4bd
--- /dev/null
+++ b/ext/sqlite/tests/bug38759.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Bug #38759 (sqlite2 empty query causes segfault)
+--SKIPIF--
+<?php
+if (!extension_loaded("pdo")) print "skip";
+if (!extension_loaded("sqlite")) print "skip";
+?>
+--FILE--
+<?php
+
+$dbh = new PDO('sqlite2::memory:');
+var_dump($dbh->query(" "));
+
+echo "Done\n";
+?>
+--EXPECTF--
+bool(false)
+Done