diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-24 13:43:47 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-24 13:43:47 +0100 |
commit | 2fd4198b78358cf2ba527296fafb5b1728e28ea8 (patch) | |
tree | 798098f25293908c7fae4e35e8761918460cdb3e /src/floatmember.h | |
parent | 930ab4880b65885322eb7ca4772b8cdb49a2b0ae (diff) |
added tsrm parameter to all methods to make it compile on tsrm platforms
Diffstat (limited to 'src/floatmember.h')
-rw-r--r-- | src/floatmember.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/floatmember.h b/src/floatmember.h index 8136fc2..9b5d4f2 100644 --- a/src/floatmember.h +++ b/src/floatmember.h @@ -41,20 +41,22 @@ 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_double(entry, _name.c_str(), _name.size(), _value); + zend_declare_class_constant_double(entry, _name.c_str(), _name.size(), _value TSRMLS_CC); } /** * Virtual method to declare the property - * @param entry Class entry + * @param entry Class entry' + * @param tsrm_ls */ - virtual void declare(struct _zend_class_entry *entry) override + virtual void declare(struct _zend_class_entry *entry TSRMLS_DC) override { // converstion to char* necessary for php 5.3 - zend_declare_property_double(entry, (char *)_name.c_str(), _name.size(), _value, _flags); + zend_declare_property_double(entry, (char *)_name.c_str(), _name.size(), _value, _flags TSRMLS_CC); } }; |