summaryrefslogtreecommitdiff
path: root/ext/standard/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r--ext/standard/string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 75162a19ca..66778f9043 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -1193,14 +1193,14 @@ PHPAPI void php_implode(const zend_string *glue, zval *pieces, zval *return_valu
RETURN_EMPTY_STRING();
} else if (numelems == 1) {
/* loop to search the first not undefined element... */
- ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(pieces), tmp) {
+ ZEND_HASH_FOREACH_VAL_IND(Z_ARRVAL_P(pieces), tmp) {
RETURN_STR(zval_get_string(tmp));
} ZEND_HASH_FOREACH_END();
}
ptr = strings = do_alloca((sizeof(*strings)) * numelems, use_heap);
- ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(pieces), tmp) {
+ ZEND_HASH_FOREACH_VAL_IND(Z_ARRVAL_P(pieces), tmp) {
if (EXPECTED(Z_TYPE_P(tmp) == IS_STRING)) {
ptr->str = Z_STR_P(tmp);
len += ZSTR_LEN(ptr->str);