summaryrefslogtreecommitdiff
path: root/tests/cpp/main.cpp
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-04-14 00:36:01 +0600
committervalmat <ufabiz@gmail.com>2014-04-14 00:36:01 +0600
commit06ca40ff782231f58d629b09004700714d96fa0c (patch)
tree4145bb0adaa205a01eb34b50c8ff690729c5d02b /tests/cpp/main.cpp
parente6660c521ea5d03e0caffa2a1f69e6e28982ab8b (diff)
Separated class IniValue from class Ini
Also replaced Ini::get() on ini_get() see https://github.com/CopernicaMarketingSoftware/PHP-CPP/issues/64#issuecomment-40313791
Diffstat (limited to 'tests/cpp/main.cpp')
-rw-r--r--tests/cpp/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/cpp/main.cpp b/tests/cpp/main.cpp
index 5fd3d87..0f36ecc 100644
--- a/tests/cpp/main.cpp
+++ b/tests/cpp/main.cpp
@@ -155,9 +155,8 @@ extern "C"
extension.add("TestIniEntries\\iniTest1", TestIniEntries::iniTest1);
extension.onStartup([](){
- Php::out << "Ini::get(ini1) = {{" << Php::Ini::get("ini1") << " | " << Php::Ini::get_orig("ini1") << "}}" << std::endl;
- Php::out << "Ini::get(ini2) = {{" << Php::Ini::get("ini2") << " | " << Php::Ini::get_orig("ini2") << "}}" << std::endl;
- //Php::out << "Ini::get(ini2) = {{" << Php::ini_get("ini2") << "}}" << std::endl; // <-- Error. Php core not loaded yet.
+ Php::out << "ini_get(ini1) = {{" << Php::ini_get("ini1") << " | " << Php::ini_get_orig("ini1") << "}}" << std::endl;
+ Php::out << "ini_get(ini2) = {{" << Php::ini_get("ini2") << " | " << Php::ini_get_orig("ini2") << "}}" << std::endl;
});