diff options
author | valmat <ufabiz@gmail.com> | 2014-04-09 12:00:33 +0600 |
---|---|---|
committer | valmat <ufabiz@gmail.com> | 2014-04-09 12:00:33 +0600 |
commit | 21ba3f0aae94206457327552666d75dd2cf0a8f2 (patch) | |
tree | 266b24a9d549189d4a20f1db45d8edc771e32fca /zend/namespace.cpp | |
parent | 6c7c846edd5b74450b76532da33c25e6cc6a10a4 (diff) |
Made compatible. Now works in the new structure of the library.
Diffstat (limited to 'zend/namespace.cpp')
-rw-r--r-- | zend/namespace.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/zend/namespace.cpp b/zend/namespace.cpp index bea31a1..e9ec631 100644 --- a/zend/namespace.cpp +++ b/zend/namespace.cpp @@ -128,6 +128,21 @@ void Namespace::apply(const std::function<void(const std::string &ns, ClassBase } /** + * Filling ini entries into external zend_ini_entry array + * @param zend_ini_entry* + */ +void Namespace::fill_ini(zend_ini_entry *ini_entries, int module_number) +{ + // loop through the ini entries + unsigned int Ind = 0; + for (auto &ini : _ini_entries) ini->fill(&ini_entries[Ind++], module_number); + + // add last empty ini entry (Zend, for some reason, it requires) + zend_ini_entry empty_entry { 0, 0, nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullptr, 0, nullptr, 0, 0, 0, nullptr }; + ini_entries[Ind] = empty_entry; +} + +/** * End namespace */ } |