Require php-intl extension, get rid of Net_IDNA2, PHP8 fixes, short array syntax

Net_IDNA2 is not compatible, and Intl is a bundled ext since PHP 5.3.
Fixed some regressions.
This commit is contained in:
Aleksander Machniak
2020-12-13 10:21:52 +01:00
parent 61a5ade872
commit 12547ccf01
16 changed files with 356 additions and 417 deletions

View File

@@ -158,7 +158,7 @@ class rcmail_install
}
}
else if ($in_config && $token[0] == T_COMMENT) {
$buffer .= strtr($token[1], ['\n' => "\n"]);
$buffer .= strtr($token[1], ['\n' => "\n"]) . "\n";
}
}
}
@@ -172,7 +172,7 @@ class rcmail_install
* @param string $name Property name
* @param string $default Default value
*
* @return string The property value
* @return mixed The property value
*/
public function getprop($name, $default = '')
{