[REF][PHP8.1] Do not set auto_detect_line_endings to true on php versions 8.1 and...
authorSeamus Lee <seamuslee001@gmail.com>
Sat, 30 Jul 2022 04:34:05 +0000 (14:34 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Sat, 30 Jul 2022 04:34:05 +0000 (14:34 +1000)
templates/CRM/common/civicrm.settings.php.template

index d7019b1e93f26aa096f1dfd7d7022db3588a0fdd..f407ba2cd2412381eda89e2e99fb42d38cde7144 100644 (file)
@@ -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'));