summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-04-28 11:26:58 +0800
committerXinchen Hui <laruence@php.net>2015-04-28 11:26:58 +0800
commit38d79e9449ac3bfd51927183b975ab9c01cfde57 (patch)
tree415fa5d6e5078df394173466fea17dfdc94825c7 /ext/pcre/php_pcre.c
parente5633865829a5160077e327445c7ff490f2d05d4 (diff)
downloadphp-git-38d79e9449ac3bfd51927183b975ab9c01cfde57.tar.gz
Drop unused num index
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c3
1 files changed, 1 insertions, 2 deletions
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(&regex, str_idx);
} else {