summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-04-10 13:04:34 +0600
committervalmat <ufabiz@gmail.com>2014-04-10 13:04:34 +0600
commit14b63ee87dde3688fea7e58fa25b73362117ae11 (patch)
tree0611b2d6ccc4edfb27e350f4925cbe169c2520a7 /tests
parent1a6b709b8f732ea8a91b07a74f64928e0484b1f6 (diff)
Fixed problem with duplicate names ini entries.
Mentioned https://github.com/CopernicaMarketingSoftware/PHP-CPP/issues/64#issuecomment-39838004 Now in the case of duplication name of ini entriy the new value overrides the old one. Before was incorrect handling of this situation.
Diffstat (limited to 'tests')
-rw-r--r--tests/cpp/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/cpp/main.cpp b/tests/cpp/main.cpp
index 334398a..2e0a1dc 100644
--- a/tests/cpp/main.cpp
+++ b/tests/cpp/main.cpp
@@ -147,6 +147,8 @@ extern "C"
Php::Ini ini8("ini8", 3.1415926, 6.2831852);
Php::Ini ini9("ini9", 2.7182818, 5.4365636, Php::Ini::User);
+ extension.add(Php::Ini("ini9", 0.333333, 0.777777, Php::Ini::Perdir));
+
extension.add(ini8);
extension.add(std::move(ini9));