diff options
author | valmat <ufabiz@gmail.com> | 2014-04-14 00:36:01 +0600 |
---|---|---|
committer | valmat <ufabiz@gmail.com> | 2014-04-14 00:36:01 +0600 |
commit | 06ca40ff782231f58d629b09004700714d96fa0c (patch) | |
tree | 4145bb0adaa205a01eb34b50c8ff690729c5d02b /tests/cpp | |
parent | e6660c521ea5d03e0caffa2a1f69e6e28982ab8b (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')
-rw-r--r-- | tests/cpp/include/ini_entries/001.h | 8 | ||||
-rw-r--r-- | tests/cpp/main.cpp | 5 |
2 files changed, 6 insertions, 7 deletions
diff --git a/tests/cpp/include/ini_entries/001.h b/tests/cpp/include/ini_entries/001.h index 440944c..ece2aa4 100644 --- a/tests/cpp/include/ini_entries/001.h +++ b/tests/cpp/include/ini_entries/001.h @@ -23,10 +23,10 @@ namespace TestIniEntries { Ini::get("ini1") */ - 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(ini3) = {{" << Php::Ini::get("ini3") << " | " << Php::Ini::get_orig("ini3") << "}}" << std::endl; - Php::out << "Ini::get(ini4) = {{" << Php::Ini::get("ini4") << " | " << Php::Ini::get_orig("ini4") << "}}" << std::endl; + 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(ini3) = {{" << Php::ini_get("ini3") << " | " << Php::ini_get_orig("ini3") << "}}" << std::endl; + Php::out << "ini_get(ini4) = {{" << Php::ini_get("ini4") << " | " << Php::ini_get_orig("ini4") << "}}" << std::endl; /* Php::out << "extension_for_tests.some_string ={{" << Php::ini_get("extension_for_tests.some_string") << "}}" << std::endl; Php::out << "extension_for_tests.some_string2 ={{" << Php::ini_get("extension_for_tests.some_string2") << "}}" << std::endl; 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; }); |