diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-01-15 23:13:29 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-01-15 23:13:29 +0100 |
commit | 42b5d14fe83464e06c35a9d958479561f7623ba3 (patch) | |
tree | ae621a006b4a5f03b57e6efba93306a7f44d25d7 | |
parent | d87b3ca8f1dbcb395f2dfd6540483da7a0e5e15c (diff) |
fixed compiling on multithreading platforms
-rw-r--r-- | zend/function.cpp | 3 |
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); } |