From 3eeff5cb7ee7955108aa999a06d665eb85e27e65 Mon Sep 17 00:00:00 2001 From: buckaroo-labs <46908086+buckaroo-labs@users.noreply.github.com> Date: Wed, 20 Dec 2023 16:43:35 -0800 Subject: [PATCH] PHP 8 modifications modifications to avoid "Deprecated" warnings in sql_connect function --- src/SemanticScuttle/db/mssql-odbc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/SemanticScuttle/db/mssql-odbc.php b/src/SemanticScuttle/db/mssql-odbc.php index a2d3d02..eb9d45b 100644 --- a/src/SemanticScuttle/db/mssql-odbc.php +++ b/src/SemanticScuttle/db/mssql-odbc.php @@ -37,6 +37,12 @@ class sql_db var $num_rows = array(); var $current_row = 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 = false, $persistency = false) { $this->persistency = $persistency; @@ -573,4 +579,4 @@ class sql_db } // if ... define -?> \ No newline at end of file +?>