summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar buckaroo-labs2023-12-20 16:43:52 -0800
committerGravatar GitHub2023-12-20 16:43:52 -0800
commita877f1ced82bf7013c83d7531139f6031c1a96e0 (patch)
tree1fd01ffd0f1b3b805583473d4415f2f2e988723e
parent5abe272660f7e7a1839e2386a01b1f852c427253 (diff)
downloadscuttle-a877f1ced82bf7013c83d7531139f6031c1a96e0.tar.gz
scuttle-a877f1ced82bf7013c83d7531139f6031c1a96e0.zip
PHP 8 modifications
modifications to avoid "Deprecated" warnings in sql_connect function
-rw-r--r--src/SemanticScuttle/db/postgres.php8
1 files changed, 7 insertions, 1 deletions
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
+?>