Use RX_WINDOWS consistently

This commit is contained in:
Kijin Sung 2024-11-17 22:22:54 +09:00
parent 7ffb1c50fc
commit b6fc630f4a
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,7 @@ class CacheReset extends Base
// If possible, use system command to speed up recursive deletion
if (function_exists('exec') && !preg_match('/(?<!_)exec/', ini_get('disable_functions')))
{
if (strncasecmp(\PHP_OS, 'win', 3) == 0)
if (\RX_WINDOWS)
{
@exec('rmdir /S /Q ' . escapeshellarg($tmp_dir));
}

View file

@ -176,7 +176,7 @@ class Cleanup extends Base
{
return $cache = true;
}
if (preg_match('/Win/i', \PHP_OS))
if (\RX_WINDOWS)
{
return $cache = false;
}