From 5d6ca81de0ef23b8a305af6cf3dbdbccc6659229 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sat, 30 Jul 2022 14:34:05 +1000 Subject: [PATCH] [REF][PHP8.1] Do not set auto_detect_line_endings to true on php versions 8.1 and later as it is deprecated --- templates/CRM/common/civicrm.settings.php.template | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/CRM/common/civicrm.settings.php.template b/templates/CRM/common/civicrm.settings.php.template index d7019b1e93..f407ba2cd2 100644 --- a/templates/CRM/common/civicrm.settings.php.template +++ b/templates/CRM/common/civicrm.settings.php.template @@ -597,7 +597,9 @@ if (!defined('CIVICRM_CLEANURL')) { } // force PHP to auto-detect Mac line endings -ini_set('auto_detect_line_endings', '1'); +if (version_compare(PHP_VERSION, '8.1') < 0) { + ini_set('auto_detect_line_endings', '1'); +} // make sure the memory_limit is at least 64 MB $memLimitString = trim(ini_get('memory_limit')); -- 2.25.1