|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull Requests
Pull requests: 
 HistoryAllCommentsChangesGit/SVN commits              [2019-09-13 21:43 UTC] bugreportuser+php dot bugs at gmail dot com
  [2019-09-14 16:49 UTC] cmb@php.net
  [2019-09-14 16:49 UTC] cmb@php.net
 
-Status: Open
+Status: Closed
  [2019-09-14 16:50 UTC] cmb@php.net
 
-Assigned To:
+Assigned To: cmb
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 01:00:01 2025 UTC | 
Description: ------------ Setting "auto_detect_line_endings" to "on" with "ini_set" doesn't enable it, because the value's parsed as a long. This bug has a pull request. Test script: --------------- <?php ini_set("auto_detect_line_endings", "on"); var_dump(ini_get("auto_detect_line_endings")); $filePath = __DIR__ . DIRECTORY_SEPARATOR . "auto_detect_line_endings_2.txt"; file_put_contents($filePath, "fooBar1\rfooBar2\rfooBar3"); $stdin = fopen($filePath, "r"); var_dump(fgets($stdin)); Expected result: ---------------- string(2) "on" string(8) "fooBar1" Actual result: -------------- string(2) "on" string(23) "fooBar1fooBar2fooBar3"