summaryrefslogtreecommitdiff
path: root/src/stringmember.h
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/stringmember.h
parent930ab4880b65885322eb7ca4772b8cdb49a2b0ae (diff)
added tsrm parameter to all methods to make it compile on tsrm platforms
Diffstat (limited to 'src/stringmember.h')
-rw-r--r--src/stringmember.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/stringmember.h b/src/stringmember.h
index c80e0a1..e58cd3d 100644
--- a/src/stringmember.h
+++ b/src/stringmember.h
@@ -58,20 +58,21 @@ public:
/**
* Virtual method to declare class constant
* @param entry Class entry
+ * @param tsrm_ls
*/
- virtual void constant(struct _zend_class_entry *entry) override
+ virtual void constant(struct _zend_class_entry *entry TSRMLS_DC) override
{
- zend_declare_class_constant_stringl(entry, _name.c_str(), _name.size(), _value.c_str(), _value.size());
+ zend_declare_class_constant_stringl(entry, _name.c_str(), _name.size(), _value.c_str(), _value.size() TSRMLS_CC);
}
/**
* Virtual method to declare the property
* @param entry Class entry
*/
- virtual void declare(struct _zend_class_entry *entry) override
+ virtual void declare(struct _zend_class_entry *entry TSRMLS_DC) override
{
// cast to char* is necessary for php 5.3
- zend_declare_property_stringl(entry, (char *)_name.c_str(), _name.size(), (char *)_value.c_str(), _value.size(), _flags);
+ zend_declare_property_stringl(entry, (char *)_name.c_str(), _name.size(), (char *)_value.c_str(), _value.size(), _flags TSRMLS_CC);
}
};