summaryrefslogtreecommitdiff
path: root/zend/classimpl.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-15 16:34:14 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-15 16:34:14 +0100
commitd87b3ca8f1dbcb395f2dfd6540483da7a0e5e15c (patch)
tree6dd3179162d5cecc474fc9028039bd757f6df04b /zend/classimpl.cpp
parentd8fe9239959dfeae11daa5de70126e30119d3b75 (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.cpp')
-rw-r--r--zend/classimpl.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/zend/classimpl.cpp b/zend/classimpl.cpp
index e42605e..fa1aa60 100644
--- a/zend/classimpl.cpp
+++ b/zend/classimpl.cpp
@@ -1344,8 +1344,9 @@ const struct _zend_function_entry *ClassImpl::entries()
* @param base the c++ class object created in the extension
* @param prefix namespace prefix
* @param tsrm_ls
+ * @return zend_class_entry
*/
-void ClassImpl::initialize(ClassBase *base, const std::string &prefix TSRMLS_DC)
+zend_class_entry *ClassImpl::initialize(ClassBase *base, const std::string &prefix TSRMLS_DC)
{
// store base pointer
_base = base;
@@ -1442,6 +1443,9 @@ void ClassImpl::initialize(ClassBase *base, const std::string &prefix TSRMLS_DC)
// declare all member variables
for (auto &member : _members) member->initialize(_entry TSRMLS_CC);
+
+ // done
+ return _entry;
}
/**