]> granicus.if.org Git - php/commitdiff
add some windows-style INI entries to tests
authorStanislav Malyshev <stas@php.net>
Thu, 11 Sep 2008 00:50:08 +0000 (00:50 +0000)
committerStanislav Malyshev <stas@php.net>
Thu, 11 Sep 2008 00:50:08 +0000 (00:50 +0000)
ext/standard/tests/general_functions/parse_ini_basic.data
ext/standard/tests/general_functions/parse_ini_basic.phpt

index 05b515ee6094c4600621a02e970987a9a7e79234..fdbd55cbf92677d06d89b8b9f0950c41ea38e374 100644 (file)
@@ -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\"
index 00acbbc9c44138e7585802b20fb49fa093fef2f4..179c4521a098cd2f18c7704b75e77c7335ce0cad 100644 (file)
@@ -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.