summaryrefslogtreecommitdiff
path: root/src/globals.cpp
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-24 13:43:47 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-24 13:43:47 +0100
commit2fd4198b78358cf2ba527296fafb5b1728e28ea8 (patch)
tree798098f25293908c7fae4e35e8761918460cdb3e /src/globals.cpp
parent930ab4880b65885322eb7ca4772b8cdb49a2b0ae (diff)
added tsrm parameter to all methods to make it compile on tsrm platforms
Diffstat (limited to 'src/globals.cpp')
-rw-r--r--src/globals.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/globals.cpp b/src/globals.cpp
index 6c7af86..8132ef3 100644
--- a/src/globals.cpp
+++ b/src/globals.cpp
@@ -39,6 +39,9 @@ Global Globals::operator[](const char *name)
// pointer to a zval
zval **varvalue;
+ // we need the TSRMLS variable
+ TSRMLS_FETCH();
+
// check if the variable already exists
if (zend_hash_find(&EG(symbol_table), name, strlen(name)+1, (void**)&varvalue) == FAILURE)
{
@@ -63,6 +66,9 @@ Global Globals::operator[](const std::string &name)
{
// pointer to a zval
zval **varvalue;
+
+ // we need the TSRMLS variable
+ TSRMLS_FETCH();
// check if the variable already exists
if (zend_hash_find(&EG(symbol_table), name.c_str(), name.size()+1, (void**)&varvalue) == FAILURE)