rfc:foreach-non-scalar-keys
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
rfc:foreach-non-scalar-keys [2013/03/12 16:40] – Implemented! nikic | rfc:foreach-non-scalar-keys [2013/03/12 16:53] – update with recent changes nikic | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2013-01-28 | * Date: 2013-01-28 | ||
* Authors: Levi Morrison < | * Authors: Levi Morrison < | ||
- | * Status: Implemented in PHP 5.5 | + | * Status: Implemented in PHP 5.5 ([[https:// |
===== Current situation ===== | ===== Current situation ===== | ||
Line 59: | Line 59: | ||
int (*get_current_key)(zend_object_iterator *iter, char **str_key, uint *str_key_len, | int (*get_current_key)(zend_object_iterator *iter, char **str_key, uint *str_key_len, | ||
// Is replaced with this entry: | // Is replaced with this entry: | ||
- | zval *(*get_current_key)(zend_object_iterator *iter TSRMLS_DC); | + | void (*get_current_key)(zend_object_iterator *iter, zval *key TSRMLS_DC); |
</ | </ | ||
- | The handler | + | The handler |
- | + | ||
- | The signature can use '' | + | |
===== iterator_to_array() ===== | ===== iterator_to_array() ===== | ||
Line 90: | Line 88: | ||
===== Patch ===== | ===== Patch ===== | ||
- | A preliminary | + | The patch for this change |
The change itself is rather small, but there are quite a few extensions that require minor adjustments to use the new API. | The change itself is rather small, but there are quite a few extensions that require minor adjustments to use the new API. |
rfc/foreach-non-scalar-keys.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1