From fcc6611de9054327441786e52444b5f8eecdd525 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 16 Feb 2013 19:13:36 +0100 Subject: Add support for non-scalar Iterator keys in foreach RFC: https://wiki.php.net/rfc/foreach-non-scalar-keys --- UPGRADING.INTERNALS | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'UPGRADING.INTERNALS') diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS index 44cdfaee6c..56243d1f81 100644 --- a/UPGRADING.INTERNALS +++ b/UPGRADING.INTERNALS @@ -64,6 +64,14 @@ void zend_qsort_r(void *base, size_t nmemb, size_t siz, compare_r_func_t compare The extra argument it has (relatively to zend_qsort()) is passed to the comparison function. + d. get_current_key + +The signature of the get_current_key iteration handler has been changed to: + +void (*get_current_key)(zend_object_iterator *iter, zval *key TSRMLS_DC); + +The key should be written into the zval* using the ZVAL_* macros. + ======================== 2. Build system changes ======================== -- cgit v1.2.1