From: Stanislav Malyshev Date: Thu, 11 Sep 2008 00:50:08 +0000 (+0000) Subject: add some windows-style INI entries to tests X-Git-Tag: BEFORE_HEAD_NS_CHANGE~439 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a55154b6b98938056732790848f07b651eb6308;p=php add some windows-style INI entries to tests --- diff --git a/ext/standard/tests/general_functions/parse_ini_basic.data b/ext/standard/tests/general_functions/parse_ini_basic.data index 05b515ee60..fdbd55cbf9 100644 --- a/ext/standard/tests/general_functions/parse_ini_basic.data +++ b/ext/standard/tests/general_functions/parse_ini_basic.data @@ -127,3 +127,6 @@ ini_with-hyphen = with hyphen and underscore ini.with-hyphen = dot and hyphen ini-with.hyphen = hyphen and dot +[windows paths] +winpath1="c:\some windows\path\test\new\r\quote \" here\single ' quote\some more" +winpath2="special case\" diff --git a/ext/standard/tests/general_functions/parse_ini_basic.phpt b/ext/standard/tests/general_functions/parse_ini_basic.phpt index 00acbbc9c4..179c4521a0 100644 --- a/ext/standard/tests/general_functions/parse_ini_basic.phpt +++ b/ext/standard/tests/general_functions/parse_ini_basic.phpt @@ -15,7 +15,7 @@ var_dump(parse_ini_file($ini_file, 1)); echo "Done.\n"; ?> --EXPECT-- -array(25) { +array(26) { [u"basic"]=> array(15) { [u"basicval"]=> @@ -272,5 +272,12 @@ array(25) { [u"ini-with.hyphen"]=> unicode(14) "hyphen and dot" } + [u"windows paths"]=> + array(2) { + [u"winpath1"]=> + unicode(69) "c:\some windows\path\test\new\r\quote " here\single ' quote\some more" + [u"winpath2"]=> + unicode(13) "special case\" + } } Done.