From c5c8b70579260612d3a855a1b98e840e017f8d44 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Thu, 31 Aug 2023 12:02:57 +0900 Subject: [PATCH] Fix collision of common constants with other programs like codeception --- common/constants.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/constants.php b/common/constants.php index 0096ac9c6..79d23ecfb 100644 --- a/common/constants.php +++ b/common/constants.php @@ -165,11 +165,11 @@ define('XDIGITS', '0123456789abcdef'); define('ALPHABETS', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'); define('UPPER', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'); define('LOWER', 'abcdefghijklmnopqrstuvwxyz'); -define('CR', "\r"); -define('CRLF', "\r\n"); -define('LF', "\n"); -define('Y', 'Y'); -define('N', 'N'); +if (!defined('CR')) define('CR', "\r"); +if (!defined('CRLF')) define('CRLF', "\r\n"); +if (!defined('LF')) define('LF', "\n"); +if (!defined('Y')) define('Y', 'Y'); +if (!defined('N')) define('N', 'N'); define('FOLLOW_REQUEST_SSL', 0); define('ENFORCE_SSL', 1); define('RELEASE_SSL', 2);