fixing PHP 8.1 errors

Dieser Commit ist enthalten in:
o.pinke 2022-01-27 17:54:20 +01:00
Ursprung 4b8c93b9ee
Commit 4ff23df02e
7 geänderte Dateien mit 14 neuen und 7 gelöschten Zeilen

1
.gitignore vendored
Datei anzeigen

@ -17,3 +17,4 @@
/cms/dflip/ /cms/dflip/
/cms/js/firstlevel/ /cms/js/firstlevel/
/conlite/external/**/.git /conlite/external/**/.git
/dievino/

Datei anzeigen

@ -134,10 +134,10 @@ class DB_Sql extends DB_Sql_Abstract {
); );
if (isset($aCon['charset'])) { if (!empty($aCon['charset'])) {
@mysqli_set_charset($dbh, $aCon['charset']); mysqli_set_charset($dbh, $aCon['charset']);
} else { } else {
@mysqli_set_charset($dbh, 'utf8'); mysqli_set_charset($dbh, 'utf8');
} }
//echo mysqli_character_set_name($dbh); //echo mysqli_character_set_name($dbh);

0
conlite/includes/startup.php Ausführbare Datei → Normale Datei
Datei anzeigen

Datei anzeigen

@ -1,6 +1,6 @@
auxiliary.org-netbeans-modules-php-smarty.smarty-framework=true auxiliary.org-netbeans-modules-php-smarty.smarty-framework=true
include.path=${php.global.include.path} include.path=${php.global.include.path}
php.version=PHP_73 php.version=PHP_80
source.encoding=UTF-8 source.encoding=UTF-8
src.dir=. src.dir=.
tags.asp=false tags.asp=false

Datei anzeigen

@ -513,7 +513,8 @@ abstract class HTML_Common2 implements ArrayAccess
* @return boolean Returns true on success or false on failure. * @return boolean Returns true on success or false on failure.
* @link http://php.net/manual/en/arrayaccess.offsetexists.php * @link http://php.net/manual/en/arrayaccess.offsetexists.php
*/ */
public function offsetExists($offset) #[ReturnTypeWillChange]
public function offsetExists($offset)
{ {
return isset($this->attributes[strtolower($offset)]); return isset($this->attributes[strtolower($offset)]);
} }
@ -527,6 +528,7 @@ abstract class HTML_Common2 implements ArrayAccess
* @link http://php.net/manual/en/arrayaccess.offsetget.php * @link http://php.net/manual/en/arrayaccess.offsetget.php
* @see getAttribute() * @see getAttribute()
*/ */
#[ReturnTypeWillChange]
public function offsetGet($offset) public function offsetGet($offset)
{ {
return $this->getAttribute($offset); return $this->getAttribute($offset);
@ -542,6 +544,7 @@ abstract class HTML_Common2 implements ArrayAccess
* @link http://php.net/manual/en/arrayaccess.offsetset.php * @link http://php.net/manual/en/arrayaccess.offsetset.php
* @see setAttribute() * @see setAttribute()
*/ */
#[ReturnTypeWillChange]
public function offsetSet($offset, $value) public function offsetSet($offset, $value)
{ {
if (null !== $offset) { if (null !== $offset) {
@ -561,6 +564,7 @@ abstract class HTML_Common2 implements ArrayAccess
* @link http://php.net/manual/en/arrayaccess.offsetunset.php * @link http://php.net/manual/en/arrayaccess.offsetunset.php
* @see removeAttribute * @see removeAttribute
*/ */
#[ReturnTypeWillChange]
public function offsetUnset($offset) public function offsetUnset($offset)
{ {
$this->removeAttribute($offset); $this->removeAttribute($offset);

Datei anzeigen

@ -37,6 +37,6 @@ define('C_SETUP_STEPFILE', 'images/steps/s%d.png');
define('C_SETUP_STEPFILE_ACTIVE', 'images/steps/s%da.png'); define('C_SETUP_STEPFILE_ACTIVE', 'images/steps/s%da.png');
define('C_SETUP_STEPWIDTH', 28); define('C_SETUP_STEPWIDTH', 28);
define('C_SETUP_STEPHEIGHT', 28); define('C_SETUP_STEPHEIGHT', 28);
define('C_SETUP_MIN_PHP_VERSION', '7.2.0'); define('C_SETUP_MIN_PHP_VERSION', '7.4.0');
define('C_SETUP_MAX_PHP_VERSION', '8.1.0'); define('C_SETUP_MAX_PHP_VERSION', '8.2.0');
define('C_SETUP_VERSION', '2.2.0 beta'); define('C_SETUP_VERSION', '2.2.0 beta');

Datei anzeigen

@ -31,6 +31,8 @@ if (!defined('CON_FRAMEWORK')) {
die('Illegal call'); die('Illegal call');
} }
//print_r($_SESSION);
class cSetupSetupSummary extends cSetupMask { class cSetupSetupSummary extends cSetupMask {
public function __construct($step, $previous, $next) { public function __construct($step, $previous, $next) {