From fdcca930561babde7fe46cb51215ca9422dea09f Mon Sep 17 00:00:00 2001 From: bugreportuser <37939393+bugreportuser@users.noreply.github.com> Date: Thu, 12 Sep 2019 12:44:08 -0600 Subject: Fix #78535: auto_detect_line_endings value not parsed as bool --- .../tests/file/auto_detect_line_endings_1.phpt | 24 +++++++++++++++++++ .../tests/file/auto_detect_line_endings_2.phpt | 28 ++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 ext/standard/tests/file/auto_detect_line_endings_1.phpt create mode 100644 ext/standard/tests/file/auto_detect_line_endings_2.phpt (limited to 'ext/standard/tests/file') diff --git a/ext/standard/tests/file/auto_detect_line_endings_1.phpt b/ext/standard/tests/file/auto_detect_line_endings_1.phpt new file mode 100644 index 0000000000..c79082ecdb --- /dev/null +++ b/ext/standard/tests/file/auto_detect_line_endings_1.phpt @@ -0,0 +1,24 @@ +--TEST-- +auto_detect_line_endings --INI-- bool +--INI-- +auto_detect_line_endings=on +--STDIN-- +fooBar1 fooBar2 fooBar3 +--FILE-- + +--EXPECTF-- +string(1) "1" +string(8) "fooBar1 " +string(8) "fooBar2 " +string(8) "fooBar3 +" +Done diff --git a/ext/standard/tests/file/auto_detect_line_endings_2.phpt b/ext/standard/tests/file/auto_detect_line_endings_2.phpt new file mode 100644 index 0000000000..f33a055e08 --- /dev/null +++ b/ext/standard/tests/file/auto_detect_line_endings_2.phpt @@ -0,0 +1,28 @@ +--TEST-- +ini_set auto_detect_line_endings bool +--FILE-- + +--EXPECTF-- +string(2) "on" +string(8) "fooBar1 " +string(8) "fooBar2 " +string(7) "fooBar3" +Done +--CLEAN-- + -- cgit v1.2.1