diff options
| author | jvoisin | 2018-01-03 14:23:29 +0100 |
|---|---|---|
| committer | jvoisin | 2018-01-03 14:24:05 +0100 |
| commit | bc55f1ccd1c995f7ab502323c96f5a44352a5a80 (patch) | |
| tree | 7cc46d06068e3d05e8e7ef25397c70af56ce7c50 /src/tests/windows_eol.phpt | |
| parent | ba4cf621c33de08680d851b549eaaa009d5785f4 (diff) | |
Handle correctly configuration files with Windows EOL
Thanks to @fr33tux for the bug report ♥
Diffstat (limited to 'src/tests/windows_eol.phpt')
| -rw-r--r-- | src/tests/windows_eol.phpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tests/windows_eol.phpt b/src/tests/windows_eol.phpt new file mode 100644 index 0000000..0e81274 --- /dev/null +++ b/src/tests/windows_eol.phpt | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | --TEST-- | ||
| 2 | Windows EOL in configuration file | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/windows_eol.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php echo "1\n"; ?> | ||
| 9 | --EXPECT-- | ||
| 10 | 1 | ||
