From: Brian Shire Date: Wed, 3 Jun 2009 19:37:22 +0000 (+0000) Subject: Add test for Bug #47859 parse_ini_file() does not like asterisk (*) in key in the... X-Git-Tag: php-5.4.0alpha1~191^2~3418 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08f7c7f016f837d0440dd92a9fa6bbf435f27e27;p=php Add test for Bug #47859 parse_ini_file() does not like asterisk (*) in key in the beginning --- diff --git a/ext/standard/tests/general_functions/bug47859.phpt b/ext/standard/tests/general_functions/bug47859.phpt new file mode 100644 index 0000000000..766ab889b2 --- /dev/null +++ b/ext/standard/tests/general_functions/bug47859.phpt @@ -0,0 +1,42 @@ +--TEST-- +Bug #47859 parse_ini_file() does not like asterisk (*) in key in the beginning +--FILE-- + +--EXPECT-- +array(1) { + ["*key"]=> + string(6) "*value" +} +array(1) { + ["-key"]=> + string(6) "-value" +} +array(1) { + ["_key"]=> + string(6) "_value" +} +array(1) { + ["key*"]=> + string(6) "value*" +} +array(1) { + ["key.*.*"]=> + string(9) "value.*.*" +} +array(1) { + ["*.*.key"]=> + string(9) "*.*.value" +} +array(1) { + ["k*e*y"]=> + string(7) "v*a*lue" +}