Skip to content

Commit 12ab7c3

Browse files
committed
Zend/Optimizer/zend_func_info.c: rename parameter to prevent shadowing global variable
1 parent 5d959a7 commit 12ab7c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Zend/Optimizer/zend_func_info.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@ ZEND_API uint32_t zend_get_func_info(
198198
return ret;
199199
}
200200

201-
static void zend_func_info_add(const func_info_t *func_infos, size_t n)
201+
static void zend_func_info_add(const func_info_t *new_func_infos, size_t n)
202202
{
203203
for (size_t i = 0; i < n; i++) {
204-
zend_string *key = zend_string_init_interned(func_infos[i].name, func_infos[i].name_len, 1);
204+
zend_string *key = zend_string_init_interned(new_func_infos[i].name, new_func_infos[i].name_len, 1);
205205

206-
if (zend_hash_add_ptr(&func_info, key, (void**)&func_infos[i]) == NULL) {
207-
fprintf(stderr, "ERROR: Duplicate function info for \"%s\"\n", func_infos[i].name);
206+
if (zend_hash_add_ptr(&func_info, key, (void**)&new_func_infos[i]) == NULL) {
207+
fprintf(stderr, "ERROR: Duplicate function info for \"%s\"\n", new_func_infos[i].name);
208208
}
209209

210210
zend_string_release_ex(key, 1);

0 commit comments

Comments
 (0)