PHP 8.1: INI directive 'auto_detect_line_endings' is deprecated

Created on 26 January 2023, over 1 year ago
Updated 16 May 2024, about 2 months ago

PriceListItemImportForm.php contains deprecated code and gives warning for PHP 8.1:
WARNING | INI directive 'auto_detect_line_endings' is deprecated since PHP 8.1

Reading about this INI directive and the thread on issue #3254327 → from the CSV Serialization module, I think it's safe to remove this line.

auto_detect_line_endings directive only enables line-ending detection for \r characters, which are only used in legacy ("classic") Mac OS environments. It is not necessary to enable auto_detect_line_endings for PHP to detect standard \n and \r\n line-endings, which are common and used in Linux, Mac OS, and Windows systems.

📌 Task
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom littlepixiez

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024