From ec115471e4c06fd8448816866311efb432c6bc4f Mon Sep 17 00:00:00 2001 From: buckaroo-labs <46908086+buckaroo-labs@users.noreply.github.com> Date: Wed, 20 Dec 2023 16:40:53 -0800 Subject: [PATCH] PHP 8 modifications modifications to avoid "Deprecated" warnings in sql_connect function --- src/SemanticScuttle/db/sqlite.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/SemanticScuttle/db/sqlite.php b/src/SemanticScuttle/db/sqlite.php index 1591396..940e194 100644 --- a/src/SemanticScuttle/db/sqlite.php +++ b/src/SemanticScuttle/db/sqlite.php @@ -31,6 +31,13 @@ class sql_db var $num_queries = 0; var $open_queries = array(); + /* 2023-12-20 modifications to avoid "Deprecated" warnings in sql_connect function*/ + var $user; + var $persistency; + var $dbname; + var $server; + /*2023-12-20 end */ + function sql_connect($sqlserver, $sqluser, $sqlpassword, $database, $port, $persistency = false) { $this->persistency = $persistency; @@ -384,4 +391,4 @@ class sql_db } // if ... define -?> \ No newline at end of file +?>