From 7ffb1c50fc5122b67f7901effd872372dad75226 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sun, 17 Nov 2024 22:18:38 +0900 Subject: [PATCH] Define RX_WINDOWS based on PHP_OS_FAMILY --- common/constants.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/constants.php b/common/constants.php index da9ab15e6..2bce7548e 100644 --- a/common/constants.php +++ b/common/constants.php @@ -125,7 +125,7 @@ else /** * RX_WINDOWS is true if the operating system is Windows. */ -define('RX_WINDOWS', strncasecmp(PHP_OS, 'WIN', 3) === 0); +define('RX_WINDOWS', PHP_OS_FAMILY === 'Windows'); /** * XE core compatibility constants (may be used by XE-compatible plugins and themes).