noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 11/29: PHP8.1 Compatibility


From: dwm
Subject: [Noalyss-commit] [noalyss] 11/29: PHP8.1 Compatibility
Date: Sat, 6 Jan 2024 05:59:14 -0500 (EST)

sparkyx pushed a commit to branch devel
in repository noalyss.

commit bf822d3c0dc0e9805295721b2ae6f1435f721804
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Dec 16 15:03:36 2023 +0100

    PHP8.1 Compatibility
---
 html/securimage/securimage.php | 2 +-
 include/constant.php           | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/html/securimage/securimage.php b/html/securimage/securimage.php
index 43c5b8391..2621a715a 100644
--- a/html/securimage/securimage.php
+++ b/html/securimage/securimage.php
@@ -1570,7 +1570,7 @@ class Securimage_Color {
         * @param $green Green component 0-255
         * @param $blue Blue component 0-255
         */
-       function Securimage_Color($red, $green = null, $blue = null)
+       function __construct($red, $green = null, $blue = null)
        {
                if ($green == null && $blue == null && 
preg_match('/^#[a-f0-9]{3,6}$/i', $red)) {
                        $col = substr($red, 1);
diff --git a/include/constant.php b/include/constant.php
index 48584f3e1..5ee720e1e 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -67,6 +67,7 @@ if (strpos($inc_path, ";") != 0) {
 set_include_path($new_path);
 @ini_set('default_charset', "UTF-8");
 @ini_set('session.use_cookies', 1);
+// deprecated
 @ini_set('magic_quotes_gpc', 'off');
 
 if (!defined('OVERRIDE_PARAM')) {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]