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/extensionimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zend/extensionimpl.cpp') diff --git a/zend/extensionimpl.cpp b/zend/extensionimpl.cpp index f073acf..262ecdb 100644 --- a/zend/extensionimpl.cpp +++ b/zend/extensionimpl.cpp @@ -298,7 +298,7 @@ zend_module_entry *ExtensionImpl::module() int i = 0; // apply a function to each function - _data->functions([&i, entries](const std::string &prefix, Function &function) { + _data->functions([&i, entries](const std::string &prefix, NativeFunction &function) { // initialize the function function.initialize(prefix, &entries[i]); -- cgit v1.2.3