diff options
Diffstat (limited to 'src/function.h')
-rw-r--r-- | src/function.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/function.h b/src/function.h index 84d7dcc..40c392f 100644 --- a/src/function.h +++ b/src/function.h @@ -50,6 +50,20 @@ public: } } + /** + * Fill a function entry + * @param prefix Active namespace prefix + * @param entry Entry to be filled + */ + void initialize(const std::string &prefix, struct _zend_function_entry *entry) + { + // if there is a namespace prefix, we should adjust the name + if (prefix.size()) _ptr = HiddenPointer<Callable>(this, prefix+"\\"+(const char *)_ptr); + + // call base initialize + Callable::initialize(entry); + } + private: /** * Union of supported callbacks |