From: Pierre Joye Date: Thu, 21 Aug 2008 13:05:10 +0000 (+0000) Subject: - MFH: different parser message on windows X-Git-Tag: BEFORE_NS_RULES_CHANGE~625 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db31f788019e46da761ad26ed18f5b58f8f51142;p=php - MFH: different parser message on windows --- 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 0000000000..cd7d9f8442 --- /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 e7b9e898c2..9aa30f9e69 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--