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/base.cpp | |
parent | 930ab4880b65885322eb7ca4772b8cdb49a2b0ae (diff) |
added tsrm parameter to all methods to make it compile on tsrm platforms
Diffstat (limited to 'src/base.cpp')
-rw-r--r-- | src/base.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/base.cpp b/src/base.cpp index fd8e462..cefffd8 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -15,9 +15,10 @@ namespace Php { /** * Store the object in the PHP object cache * @param entry Class entry + * @param tsrm_ls * @return MixedObject */ -MixedObject *Base::store(zend_class_entry *entry) +MixedObject *Base::store(zend_class_entry *entry TSRMLS_DC) { // allocate memory for the object MixedObject *result = (MixedObject *)emalloc(sizeof(MixedObject)); @@ -29,7 +30,7 @@ MixedObject *Base::store(zend_class_entry *entry) result->php.ce = entry; // initialize the object - zend_object_std_init(&result->php, entry); + zend_object_std_init(&result->php, entry TSRMLS_CC); #if PHP_VERSION_ID < 50399 |