diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-01-15 16:34:14 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-01-15 16:34:14 +0100 |
commit | d87b3ca8f1dbcb395f2dfd6540483da7a0e5e15c (patch) | |
tree | 6dd3179162d5cecc474fc9028039bd757f6df04b /zend/classimpl.h | |
parent | d8fe9239959dfeae11daa5de70126e30119d3b75 (diff) |
Added the Php::Function class. This is an extension to the Php::Value class that can be used if you want to assign a std::function object to a Value. This is useful if you want to pass a C++ lambda to a PHP userspace function
Diffstat (limited to 'zend/classimpl.h')
-rw-r--r-- | zend/classimpl.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/zend/classimpl.h b/zend/classimpl.h index 26cf030..32f0e1f 100644 --- a/zend/classimpl.h +++ b/zend/classimpl.h @@ -140,6 +140,15 @@ public: } /** + * The class-entry + * @return zend_class_entry + */ + struct _zend_class_entry *entry() const + { + return _entry; + } + + /** * Initialize the class, given its name * * The module functions are registered on module startup, but classes are @@ -150,9 +159,10 @@ public: * * @param base The extension C++ class * @param ns Namespace name - * @param tsrm_ls + * @param tsrm_ls + * @return zend_class_entry */ - void initialize(ClassBase *base, const std::string &ns TSRMLS_DC); + struct _zend_class_entry *initialize(ClassBase *base, const std::string &ns TSRMLS_DC); /** * Static member functions to create or clone objects based on this class |