1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 12:20:44 +02:00

Fixed a bunch of PHP 7.4 syntax errors

- FIX: Removed pointless (and invalid) destructor in LinkedIn::__destruct()
- FIX: All files that trigger this deprecation notice in PHP 7.4:
       "Array and string offset access syntax with curly braces is deprecated"
This commit is contained in:
Nick Liu
2020-01-18 18:26:35 +01:00
parent d55fe8a77b
commit 524229ba0b
9 changed files with 65 additions and 74 deletions

View File

@@ -1274,10 +1274,10 @@ class e_parse extends e_parser
$intag = FALSE;
while($curlen < $len && $curlen < strlen($text))
{
switch($text {$pos} )
switch($text [$pos] )
{
case "<":
if($text {$pos + 1} == "/")
if($text [$pos + 1] == "/")
{
$closing_tag = TRUE;
}
@@ -1288,7 +1288,7 @@ class e_parse extends e_parser
case ">":
if($text {$pos - 1} == "/")
if($text [$pos - 1] == "/")
{
$closing_tag = TRUE;
}
@@ -1303,7 +1303,7 @@ class e_parse extends e_parser
case "&":
if($text {$pos + 1} == "#")
if($text [$pos + 1] == "#")
{
$end = strpos(substr($text, $pos, 7), ";");
if($end !== FALSE)