summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-03 13:49:50 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-03 13:49:50 +0200
commit8ce7055ebfbd28f283e08eb822980a7f4641c0cd (patch)
tree753ed7fed0c6dd1a8a048c8d094f593f76ac06d2
parent09cab951e9b2b0891fe6a9e9a95dac4e016b3b9b (diff)
fixes TSRMLS compile issues
-rw-r--r--src/base.cpp2
-rw-r--r--src/classimpl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/base.cpp b/src/base.cpp
index d415845..a828083 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -47,7 +47,7 @@ MixedObject *Base::store(zend_class_entry *entry TSRMLS_DC)
#endif
-#if ZTS
+#ifdef ZTS
// when in thread safety mode, the destruct method and free method have
// an extra parameter holding thread information
diff --git a/src/classimpl.cpp b/src/classimpl.cpp
index 521affa..98130dc 100644
--- a/src/classimpl.cpp
+++ b/src/classimpl.cpp
@@ -1406,7 +1406,7 @@ void ClassImpl::initialize(ClassBase *base, const std::string &prefix TSRMLS_DC)
for (auto &interface : _interfaces)
{
// register this interface
- zend_class_implements(_entry, 1, interface->_entry);
+ zend_class_implements(_entry TSRMLS_CC, 1, interface->_entry);
}
// allocate doc comment to contain an empty string + a hidden pointer