From 5abe272660f7e7a1839e2386a01b1f852c427253 Mon Sep 17 00:00:00 2001 From: buckaroo-labs Date: Wed, 20 Dec 2023 16:43:48 -0800 Subject: PHP 8 modifications modifications to avoid "Deprecated" warnings in sql_connect function--- src/SemanticScuttle/db/mysql4.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/SemanticScuttle/db/mysql4.php b/src/SemanticScuttle/db/mysql4.php index 0639518..7244e51 100644 --- a/src/SemanticScuttle/db/mysql4.php +++ b/src/SemanticScuttle/db/mysql4.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->persistency = $persistency; @@ -549,4 +555,4 @@ class sql_db } // if ... define -?> \ No newline at end of file +?> -- cgit v1.2.3-54-g00ecf