From 38d79e9449ac3bfd51927183b975ab9c01cfde57 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Tue, 28 Apr 2015 11:26:58 +0800 Subject: Drop unused num index --- ext/pcre/php_pcre.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 1f013408fc..3420a09988 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1505,7 +1505,6 @@ static PHP_FUNCTION(preg_replace_callback_array) { zval regex, zv, *replace, *subject, *pattern, *zcount = NULL; zend_long limit = -1; - zend_ulong num_idx; zend_string *str_idx; zend_string *callback_name; int replace_count = 0; @@ -1526,7 +1525,7 @@ static PHP_FUNCTION(preg_replace_callback_array) #endif ZVAL_UNDEF(&zv); - ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(pattern), num_idx, str_idx, replace) { + ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(pattern), str_idx, replace) { if (str_idx) { ZVAL_STR_COPY(®ex, str_idx); } else { -- cgit v1.2.1