summaryrefslogtreecommitdiff
path: root/ext/sqlite3/tests
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2009-01-20 09:57:34 +0000
committerScott MacVicar <scottmac@php.net>2009-01-20 09:57:34 +0000
commit5b79c375009b4aac5ae69c49746f5006092497c9 (patch)
tree1c6592437048f53371c038635235207c7538546e /ext/sqlite3/tests
parentb0c1d09cda82d9d57eaebda5a2ab061f8f283ccd (diff)
downloadphp-git-5b79c375009b4aac5ae69c49746f5006092497c9.tar.gz
MFH Fix bug #47159 - Any SQLite3 statement prepared should be added to the freelist
Diffstat (limited to 'ext/sqlite3/tests')
-rw-r--r--ext/sqlite3/tests/bug47159.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/sqlite3/tests/bug47159.phpt b/ext/sqlite3/tests/bug47159.phpt
new file mode 100644
index 0000000000..f8ffa289f5
--- /dev/null
+++ b/ext/sqlite3/tests/bug47159.phpt
@@ -0,0 +1,22 @@
+--TEST--
+Bug #45798 (sqlite3 doesn't track unexecuted statements)
+--SKIPIF--
+<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
+--FILE--
+<?php
+
+require_once(dirname(__FILE__) . '/new_db.inc');
+
+$stmt = $db->prepare("SELECT 1");
+
+var_dump($stmt->close());
+
+var_dump($db->close());
+
+print "done";
+
+?>
+--EXPECT--
+bool(true)
+bool(true)
+done