summaryrefslogtreecommitdiff
path: root/include/iterator.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 /include/iterator.h
parent930ab4880b65885322eb7ca4772b8cdb49a2b0ae (diff)
added tsrm parameter to all methods to make it compile on tsrm platforms
Diffstat (limited to 'include/iterator.h')
-rw-r--r--include/iterator.h28
1 files changed, 21 insertions, 7 deletions
diff --git a/include/iterator.h b/include/iterator.h
index 7cc99cb..d5f30c7 100644
--- a/include/iterator.h
+++ b/include/iterator.h
@@ -92,23 +92,29 @@ private:
/**
* Iterator destructor method
* @param iter
+ * @param tsrm_ls
*/
- static void destructor(struct _zend_object_iterator *iter);
+// static void destructor(struct _zend_object_iterator *iter);
+ static void destructor(struct _zend_object_iterator *iter, void ***tsrm_ls);
/**
* Iterator valid function
* Returns FAILURE or SUCCESS
* @param iter
+ * @param tsrm_ls
* @return int
*/
- static int valid(struct _zend_object_iterator *iter);
+// static int valid(struct _zend_object_iterator *iter);
+ static int valid(struct _zend_object_iterator *iter, void ***tsrm_ls);
/**
* Fetch the current item
* @param iter
* @param data
+ * @param tsrm_ls
*/
- static void current(struct _zend_object_iterator *iter, struct _zval_struct ***data);
+// static void current(struct _zend_object_iterator *iter, struct _zval_struct ***data);
+ static void current(struct _zend_object_iterator *iter, struct _zval_struct ***data, void ***tsrm_ls);
/**
* Fetch the key for the current element (optional, may be NULL). The key
@@ -117,8 +123,10 @@ private:
* used.
* @param iter
* @param data
+ * @param tsrm_ls
*/
- static void key(struct _zend_object_iterator *iter, struct _zval_struct *data);
+// static void key(struct _zend_object_iterator *iter, struct _zval_struct *data);
+ static void key(struct _zend_object_iterator *iter, struct _zval_struct *data, void ***tsrm_ls);
/**
* Function to retrieve the current key, php 5.3 style
@@ -126,21 +134,27 @@ private:
* @param str_key
* @param str_key_len
* @param int_key
+ * @param tsrm_ls
* @return HASH_KEY_IS_STRING or HASH_KEY_IS_LONG
*/
- static int key(struct _zend_object_iterator *iter, char **str_key, unsigned int *str_key_len, unsigned long *int_key);
+// static int key(struct _zend_object_iterator *iter, char **str_key, unsigned int *str_key_len, unsigned long *int_key);
+ static int key(struct _zend_object_iterator *iter, char **str_key, unsigned int *str_key_len, unsigned long *int_key, void ***tsrm_ls);
/**
* Step forwards to the next element
* @param iter
+ * @param tsrm_ls
*/
- static void next(struct _zend_object_iterator *iter);
+// static void next(struct _zend_object_iterator *iter);
+ static void next(struct _zend_object_iterator *iter, void ***tsrm_ls);
/**
* Rewind the iterator back to the start
* @param iter
+ * @param tsrm_ls
*/
- static void rewind(struct _zend_object_iterator *iter);
+// static void rewind(struct _zend_object_iterator *iter);
+ static void rewind(struct _zend_object_iterator *iter, void ***tsrm_ls);
/**
* Get access to all iterator functions