summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-16 13:41:08 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-01-16 13:41:08 +0100
commit7f6df77e15538d5acf4185159e0a25c775ddc622 (patch)
treee22cdf7264d6d503b64db552a4f9419537e84c9c
parent9390addb0798598d7b333dcc86487caf0117a231 (diff)
parent42b5d14fe83464e06c35a9d958479561f7623ba3 (diff)
Merge branch 'master' of https://github.com/CopernicaMarketingSoftware/PHP-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);
}