From 1f3d00febd6d8ac27cbf20e3cd6f64aa4e824bbc Mon Sep 17 00:00:00 2001 From: nguyenanhung Date: Thu, 23 Mar 2023 17:13:48 +0700 Subject: [PATCH] Release version 3.2.0 --- system/core/CodeIgniter.php | 2 +- system/core/Common.php | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/system/core/CodeIgniter.php b/system/core/CodeIgniter.php index ad3ec32..93ceefa 100644 --- a/system/core/CodeIgniter.php +++ b/system/core/CodeIgniter.php @@ -56,7 +56,7 @@ * @var string * */ - const CI_VERSION = '3.1.14'; + const CI_VERSION = '3.2.0'; /* * ------------------------------------------------------ diff --git a/system/core/Common.php b/system/core/Common.php index 68c6ebc..53bb8b7 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -89,6 +89,19 @@ function is_windows() // ------------------------------------------------------------------------ +if ( ! function_exists('is_linux')) { + /** + * Check if we're running on a Linux platform + */ + function is_linux() + { + $OS = strtoupper(substr(PHP_OS, 0, 3)); + return $OS !== 'WIN'; + } +} + +// ------------------------------------------------------------------------ + if ( ! function_exists('is_really_writable')) { /**