summaryrefslogtreecommitdiff
path: root/src/global.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/global.cpp
parent930ab4880b65885322eb7ca4772b8cdb49a2b0ae (diff)
added tsrm parameter to all methods to make it compile on tsrm platforms
Diffstat (limited to 'src/global.cpp')
-rw-r--r--src/global.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/global.cpp b/src/global.cpp
index af72bc0..7eea8e7 100644
--- a/src/global.cpp
+++ b/src/global.cpp
@@ -22,6 +22,9 @@ Global &Global::update()
// skip if the variable already exists
if (_exists) return *this;
+ // we need the TSRMLS variable
+ TSRMLS_FETCH();
+
// add the variable to the globals
zend_hash_add(EG(active_symbol_table), _name.c_str(), _name.size()+1, &_val, sizeof(zval*), NULL);