1--TEST--
2auto_detect_line_endings --INI-- bool
3--INI--
4auto_detect_line_endings=on
5--STDIN--
6fooBar1
6fooBar2
6fooBar3
7--FILE--
8<?php
9
10var_dump(ini_get("auto_detect_line_endings"));
11
12var_dump(fgets(STDIN));
13var_dump(fgets(STDIN));
14var_dump(fgets(STDIN));
15
16echo "Done\n";
17?>
18--EXPECTF--
19string(1) "1"
20string(8) "fooBar1
20"
21string(8) "fooBar2
21"
22string(8) "fooBar3
23"
24Done
25