From 42b5d14fe83464e06c35a9d958479561f7623ba3 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Thu, 15 Jan 2015 23:13:29 +0100 Subject: fixed compiling on multithreading platforms --- zend/function.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 functor(new Class("Functor")); + // we need the TSRMLS variable + TSRMLS_FETCH(); + // initialize the functor class return entry = functor->implementation()->initialize(functor.get(), "" TSRMLS_CC); } -- cgit v1.2.3