From: Nikita Popov Date: Thu, 7 Jan 2016 22:48:41 +0000 (+0100) Subject: Fix bitset initialization X-Git-Tag: php-7.1.0alpha1~617^2~89 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb357e0617ecffcd28fd21adacc61cdd05dec38e;p=php Fix bitset initialization --- diff --git a/ext/opcache/Optimizer/zend_call_graph.c b/ext/opcache/Optimizer/zend_call_graph.c index 8895bc5cb1..6c1933cfac 100644 --- a/ext/opcache/Optimizer/zend_call_graph.c +++ b/ext/opcache/Optimizer/zend_call_graph.c @@ -251,7 +251,7 @@ static void zend_analyze_recursion(zend_call_graph *call_graph) call_info->recursive = 1; func_info->flags |= ZEND_FUNC_RECURSIVE | ZEND_FUNC_RECURSIVE_DIRECTLY; } else { - memset(visited, 0, sizeof(uint32_t) * set_len); + memset(visited, 0, sizeof(zend_ulong) * set_len); if (zend_is_indirectly_recursive(op_array, call_info->caller_op_array, visited)) { call_info->recursive = 1; func_info->flags |= ZEND_FUNC_RECURSIVE | ZEND_FUNC_RECURSIVE_INDIRECTLY;