From 08f7c7f016f837d0440dd92a9fa6bbf435f27e27 Mon Sep 17 00:00:00 2001 From: Brian Shire Date: Wed, 3 Jun 2009 19:37:22 +0000 Subject: [PATCH] Add test for Bug #47859 parse_ini_file() does not like asterisk (*) in key in the beginning --- .../tests/general_functions/bug47859.phpt | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ext/standard/tests/general_functions/bug47859.phpt 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" +} -- 2.50.1