summaryrefslogtreecommitdiff
path: root/src/super.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/super.cpp
parent930ab4880b65885322eb7ca4772b8cdb49a2b0ae (diff)
added tsrm parameter to all methods to make it compile on tsrm platforms
Diffstat (limited to 'src/super.cpp')
-rw-r--r--src/super.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/super.cpp b/src/super.cpp
index 6b02916..b344159 100644
--- a/src/super.cpp
+++ b/src/super.cpp
@@ -30,6 +30,9 @@ Super REQUEST (TRACK_VARS_REQUEST);
*/
Value Super::operator[](const std::string &key) const
{
+ // we need the tsrm_ls pointer
+ TSRMLS_FETCH();
+
// create a value object that wraps around the actual zval
Value value(PG(http_globals)[_index]);
@@ -45,6 +48,9 @@ Value Super::operator[](const std::string &key) const
*/
Value Super::operator[](const char *key) const
{
+ // we need the tsrm_ls pointer
+ TSRMLS_FETCH();
+
// create a value object that wraps around the actual zval
Value value(PG(http_globals)[_index]);