remove mysql 5.5 support

This commit is contained in:
Zankaria 2024-11-28 01:06:59 +01:00
parent 5bd89a9437
commit 73bc23a4c7
5 changed files with 2 additions and 50 deletions

View file

@ -101,12 +101,6 @@ function sql_open() {
}
}
// 5.6.10 becomes 50610 HACK: hardcoded to be above critical value 50803 due to laziness
function mysql_version() {
// TODO delete all references of this function everywhere
return 80504;
}
function prepare($query) {
global $pdo, $debug, $config;

View file

@ -2082,9 +2082,6 @@ function markup(&$body, $track_cites = false, $op = false) {
$body = str_replace("\r", '', $body);
$body = utf8tohtml($body);
if (mysql_version() < 50503)
$body = mb_encode_numericentity($body, array(0x010000, 0xffffff, 0, 0xffffff), 'UTF-8');
if ($config['markup_code']) {
$code_markup = array();
$body = preg_replace_callback($config['markup_code'], function($matches) use (&$code_markup) {

View file

@ -520,9 +520,6 @@ function mod_new_board() {
$query = Element('posts.sql', array('board' => $board['uri']));
if (mysql_version() < 50503)
$query = preg_replace('/(CHARSET=|CHARACTER SET )utf8mb4/', '$1utf8', $query);
query($query) or error(db_error());
if ($config['cache']['enabled'])