auto_detect_line_endings
INI • Deprecated in PHP 8.1
auto_detect_line_endings — If your scripts have to deal with files from Macintosh systems, or you are running on a Mac and need to deal with files from unix or win32 systems, setting this flag will cause PHP to automatically detect the EOL character in those files so that fgets() and file() will work regardless of the source of the file.
| Default value | Off |
| Development value | Off |
| Production value | Off |
Modifiability: INI_ALL - The auto_detect_line_endings INI directive can be configured anywhere, including php.ini files, ini_set calls, Apache .htaccess files, per-directory .ini files, etc.
auto_detect_line_endings = 0 Changes to the auto_detect_line_endings INI
PHP 8.1
- INI directive deprecated:
auto_detect_line_endingsis deprecated
auto_detect_line_endings INI Availability
auto_detect_line_endings INI Availability| PHP Version | Availability |
|---|---|
| PHP 8.6Upcoming Release | Yes Deprecated |
| PHP 8.5Supported (Latest) | Yes Deprecated |
| PHP 8.4Supported | Yes Deprecated |
| PHP 8.3Security-Fixes Only | Yes Deprecated |
| PHP 8.2Security-Fixes Only | Yes Deprecated |
| PHP 8.1Unsupported | Yes Deprecated |
| PHP 8.0Unsupported | Yes |
| PHP 7.4Unsupported | Yes |
| PHP 7.3Unsupported | Yes |
| PHP 7.2Unsupported | Yes |
| PHP 7.1Unsupported | Yes |
| PHP 7.0Unsupported | Yes |
| PHP 5.6Unsupported | Yes |
| PHP 5.5Unsupported | Yes |
| PHP 5.4Unsupported | Yes |
| PHP 5.3Unsupported | Yes |