From 131b5fddca545de4e18ba2295692e22eecc79092 Mon Sep 17 00:00:00 2001 From: Daniel Marschall <28412477+danielmarschall@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:15:30 +0100 Subject: [PATCH] Fix PHP deprecation warning: Warning: define(): Argument #3 ($case_insensitive) is ignored since declaration of case-insensitive constants is no longer supported --- libraries/highlight.php | 50 ++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/libraries/highlight.php b/libraries/highlight.php index 21fc2e05c..93ae64a63 100644 --- a/libraries/highlight.php +++ b/libraries/highlight.php @@ -591,31 +591,31 @@ function syntax_highlight($text, $language) { if ($language == "Plain Text") return $text; - define("normal_text", 1, true); - define("dq_literal", 2, true); - define("dq_escape", 3, true); - define("sq_literal", 4, true); - define("sq_escape", 5, true); - define("slash_begin", 6, true); - define("star_comment", 7, true); - define("star_end", 8, true); - define("line_comment", 9, true); - define("html_entity", 10, true); - define("lc_escape", 11, true); - define("block_comment",12, true); - define("paren_begin", 13, true); - define("dash_begin", 14, true); - define("bt_literal", 15, true); - define("bt_escape", 16, true); - define("xml_tag_begin",17, true); - define("xml_tag", 18, true); - define("xml_pi", 19, true); - define("sch_normal", 20, true); - define("sch_stresc", 21, true); - define("sch_idexpr", 22, true); - define("sch_numlit", 23, true); - define("sch_chrlit", 24, true); - define("sch_strlit", 25, true); + define("normal_text", 1); + define("dq_literal", 2); + define("dq_escape", 3); + define("sq_literal", 4); + define("sq_escape", 5); + define("slash_begin", 6); + define("star_comment", 7); + define("star_end", 8); + define("line_comment", 9); + define("html_entity", 10); + define("lc_escape", 11); + define("block_comment",12); + define("paren_begin", 13); + define("dash_begin", 14); + define("bt_literal", 15); + define("bt_escape", 16); + define("xml_tag_begin",17); + define("xml_tag", 18); + define("xml_pi", 19); + define("sch_normal", 20); + define("sch_stresc", 21); + define("sch_idexpr", 22); + define("sch_numlit", 23); + define("sch_chrlit", 24); + define("sch_strlit", 25); $initial_state["Scheme"] = sch_normal;