summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2016-01-07 23:48:41 +0100
committerNikita Popov <nikic@php.net>2016-01-07 23:49:42 +0100
commitbb357e0617ecffcd28fd21adacc61cdd05dec38e (patch)
tree597a4991623835eb931b301d46fad82a1138b9e6
parente885cd817c1e1b8b7f2f126c3ccbbb7d31f2534b (diff)
downloadphp-git-bb357e0617ecffcd28fd21adacc61cdd05dec38e.tar.gz
Fix bitset initialization
-rw-r--r--ext/opcache/Optimizer/zend_call_graph.c2
1 files changed, 1 insertions, 1 deletions
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;