summaryrefslogtreecommitdiff
path: root/zend/function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zend/function.cpp')
-rw-r--r--zend/function.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/zend/function.cpp b/zend/function.cpp
index 789175e..01267c0 100644
--- a/zend/function.cpp
+++ b/zend/function.cpp
@@ -32,6 +32,9 @@ zend_class_entry *Function::entry()
// construct functor object
static std::unique_ptr<ClassBase> functor(new Class<Functor>("Functor"));
+ // we need the TSRMLS variable
+ TSRMLS_FETCH();
+
// initialize the functor class
return entry = functor->implementation()->initialize(functor.get(), "" TSRMLS_CC);
}