diff options
Diffstat (limited to 'src/global.cpp')
-rw-r--r-- | src/global.cpp | 3 |
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); |