From a877f1ced82bf7013c83d7531139f6031c1a96e0 Mon Sep 17 00:00:00 2001 From: buckaroo-labs <46908086+buckaroo-labs@users.noreply.github.com> Date: Wed, 20 Dec 2023 16:43:52 -0800 Subject: [PATCH] PHP 8 modifications modifications to avoid "Deprecated" warnings in sql_connect function --- src/SemanticScuttle/db/postgres.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/SemanticScuttle/db/postgres.php b/src/SemanticScuttle/db/postgres.php index b5bad20..4acd6a2 100644 --- a/src/SemanticScuttle/db/postgres.php +++ b/src/SemanticScuttle/db/postgres.php @@ -31,6 +31,12 @@ 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 = false, $persistency = false) { $this->connect_string = ''; @@ -594,4 +600,4 @@ class sql_db } // if ... defined -?> \ No newline at end of file +?>