summaryrefslogtreecommitdiff
path: root/ext/sqlite3/tests/sqlite3_12_unfinalized_stmt_cleanup.phpt
diff options
context:
space:
mode:
authorScott MacVicar <scottmac@php.net>2008-07-29 00:56:53 +0000
committerScott MacVicar <scottmac@php.net>2008-07-29 00:56:53 +0000
commit2b040f2d66bf1f79a4eae6038b6707d8e6d3fa72 (patch)
tree833da371d0c2069212b8c29bb00d6b89e5415055 /ext/sqlite3/tests/sqlite3_12_unfinalized_stmt_cleanup.phpt
parentae04a26afe1f3238005bc78b48fe37c4b9208781 (diff)
downloadphp-git-2b040f2d66bf1f79a4eae6038b6707d8e6d3fa72.tar.gz
MFH: Add freelist for tracking sqlite statements to free on implicit SQLite3::close()
Diffstat (limited to 'ext/sqlite3/tests/sqlite3_12_unfinalized_stmt_cleanup.phpt')
-rw-r--r--ext/sqlite3/tests/sqlite3_12_unfinalized_stmt_cleanup.phpt10
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/sqlite3/tests/sqlite3_12_unfinalized_stmt_cleanup.phpt b/ext/sqlite3/tests/sqlite3_12_unfinalized_stmt_cleanup.phpt
index 8211ed518e..73cb9a07f4 100644
--- a/ext/sqlite3/tests/sqlite3_12_unfinalized_stmt_cleanup.phpt
+++ b/ext/sqlite3/tests/sqlite3_12_unfinalized_stmt_cleanup.phpt
@@ -26,8 +26,8 @@ while ($result = $results->fetchArray(SQLITE3_NUM))
echo "Closing database\n";
var_dump($db->close());
-echo "Check result was freed\n";
-var_dump($results);
+echo "Check db was closed\n";
+var_dump($results->numColumns());
echo "Done\n";
?>
--EXPECTF--
@@ -45,6 +45,8 @@ array(2) {
}
Closing database
bool(true)
-Check result was freed
-NULL
+Check db was closed
+
+Warning: SQLite3_result::numColumns(): The SQLite3_result object has not been correctly initialised in %s on line %d
+bool(false)
Done