Skip to content

Commit

Permalink
Removed auto_detect_line_endings since it's deprecated in 8.1 (#3282)
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed May 29, 2023
1 parent 8ef41f1 commit 4ea7dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Varien/Io/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function streamOpen($fileName, $mode = 'w+', $chmod = 0666)
throw new Exception('Permission denied for write to ' . $this->getFilteredPath($this->_cwd));
}

if (!ini_get('auto_detect_line_endings')) {
if (PHP_VERSION_ID < 80100 && !ini_get('auto_detect_line_endings')) {
ini_set('auto_detect_line_endings', 1);
}

Expand Down

0 comments on commit 4ea7dce

Please sign in to comment.