com php-src: Drop unused num index: ext/pcre/php_pcre.c

From: Date: Tue, 28 Apr 2015 03:26:58 +0000
Subject: com php-src: Drop unused num index: ext/pcre/php_pcre.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86511@lists.php.net to get a copy of this message
Commit: 38d79e9449ac3bfd51927183b975ab9c01cfde57 Author: Xinchen Hui <laruence@php.net> Tue, 28 Apr 2015 11:26:58 +0800 Parents: e5633865829a5160077e327445c7ff490f2d05d4 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=38d79e9449ac3bfd51927183b975ab9c01cfde57 Log: Drop unused num index Changed paths: M ext/pcre/php_pcre.c Diff: diff --git a/ext/pcre/php_pcre..c b/ext/pcre/php_pcre.c index 1f01340..3420a09 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 {

« previous php.cvs (#86511) next »