From e6edc95f50d219ffde3a17e49b8750d802e812ad Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 21 Aug 2008 13:04:43 +0000 Subject: [PATCH] - different parser message on windows --- .../parse_ini_file-win32.phpt | 204 ++++++++++++++++++ .../general_functions/parse_ini_file.phpt | 2 + 2 files changed, 206 insertions(+) create mode 100644 ext/standard/tests/general_functions/parse_ini_file-win32.phpt diff --git a/ext/standard/tests/general_functions/parse_ini_file-win32.phpt b/ext/standard/tests/general_functions/parse_ini_file-win32.phpt new file mode 100644 index 00000000000..cd7d9f84422 --- /dev/null +++ b/ext/standard/tests/general_functions/parse_ini_file-win32.phpt @@ -0,0 +1,204 @@ +--TEST-- +parse_ini_file() multiple calls +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: parse_ini_file() expects at least 1 parameter, 0 given in %s on line 6 +bool(false) + +Warning: parse_ini_file() expects at most 3 parameters, 4 given in %s on line 7 +bool(false) + +Warning: parse_ini_file(%sparse_ini_file.dat): failed to open stream: No such file or directory in %s.php on line 8 +array(0) { +} + +Warning: parse_ini_file(%sparse_ini_file.dat): failed to open stream: No such file or directory in %s.php on line 9 +array(0) { +} +array(1) { + ["test"]=> + string(0) "" +} + +Warning: parse error in %s on line %d + in %s on line 20 +array(1) { + ["test"]=> + string(0) "" +} + +Warning: parse error in %s on line %d + in %s on line 26 +array(1) { + ["test"]=> + string(4) "test" +} +array(1) { + ["test"]=> + string(8) "new +line" +} +array(1) { + ["test"]=> + string(16) "test const value" +} +array(1) { + ["section"]=> + array(1) { + ["test"]=> + string(5) "hello" + } +} +array(1) { + ["test"]=> + string(5) "hello" +} +array(1) { + ["section.test"]=> + string(5) "hello" +} +array(1) { + ["section"]=> + array(1) { + ["section.test"]=> + string(5) "hello" + } +} +array(1) { + ["section"]=> + array(1) { + [1]=> + string(1) "2" + } +} +array(1) { + [1]=> + string(1) "2" +} +array(1) { + ["test"]=> + string(5) "test4" +} +array(1) { + ["section1"]=> + array(1) { + ["name"]=> + string(5) "value" + } +} +array(3) { + ["foo"]=> + string(4) "bar1" + ["_foo"]=> + string(4) "bar2" + ["foo_"]=> + string(4) "bar3" +} +Done diff --git a/ext/standard/tests/general_functions/parse_ini_file.phpt b/ext/standard/tests/general_functions/parse_ini_file.phpt index e24c45444cd..dcb29ce06f1 100644 --- a/ext/standard/tests/general_functions/parse_ini_file.phpt +++ b/ext/standard/tests/general_functions/parse_ini_file.phpt @@ -1,5 +1,7 @@ --TEST-- parse_ini_file() multiple calls +--SKIPIF-- + --FILE--