From 7f8d897a0b0c151c27c72ca51f66b5ab2148a433 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sun, 13 Oct 2019 19:57:48 +0900 Subject: [PATCH] Update config.php --- system/config.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/system/config.php b/system/config.php index 70cde4a..6625133 100644 --- a/system/config.php +++ b/system/config.php @@ -16,7 +16,13 @@ if(!check_function_exists("read_config")) { if(check_file_extension($file, "ini.php", array("multiple" => true))) { $str = include($file); - $ini = parse_ini_string($str); + if(version_compare(phpversion(), "5.3.0", "<")) { + $ini = parse_ini_file(write_storage_file($str, array( + "extension" => "ini" + ))); + } else { + $ini = parse_ini_string($str); + } } elseif(check_file_extension($file, "ini")) { $ini = parse_ini_file($file); }