From 068dd5f6af9677e3b4581c80a1fb87ac6fa54633 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 23 Feb 2022 11:02:18 +0100 Subject: [PATCH] PHP 8.1 support (#1209) --- system/core/Output.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/core/Output.php b/system/core/Output.php index c56aff4b..1d233679 100644 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -454,7 +454,7 @@ class CI_Output { if ($this->parse_exec_vars === TRUE) { $memory = round(memory_get_usage() / 1024 / 1024, 2).'MB'; - $output = str_replace(array('{elapsed_time}', '{memory_usage}'), array($elapsed, $memory), $output); + $output = str_replace(array('{elapsed_time}', '{memory_usage}'), array($elapsed, $memory), (string)$output); } // --------------------------------------------------------------------