From d87b3ca8f1dbcb395f2dfd6540483da7a0e5e15c Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Thu, 15 Jan 2015 16:34:14 +0100 Subject: 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 --- zend/classimpl.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'zend/classimpl.h') diff --git a/zend/classimpl.h b/zend/classimpl.h index 26cf030..32f0e1f 100644 --- a/zend/classimpl.h +++ b/zend/classimpl.h @@ -139,6 +139,15 @@ public: return _name; } + /** + * The class-entry + * @return zend_class_entry + */ + struct _zend_class_entry *entry() const + { + return _entry; + } + /** * Initialize the class, given its name * @@ -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 -- cgit v1.2.3