diff options
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r-- | Zend/zend_compile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 0abf274dbd..fc5b92f09c 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1063,10 +1063,10 @@ ZEND_API void function_add_ref(zend_function *function) /* {{{ */ ZEND_MAP_PTR_INIT(op_array->run_time_cache, zend_arena_alloc(&CG(arena), sizeof(void*))); ZEND_MAP_PTR_SET(op_array->run_time_cache, NULL); } - } else if (function->type == ZEND_INTERNAL_FUNCTION) { - if (function->common.function_name) { - zend_string_addref(function->common.function_name); - } + } + + if (function->common.function_name) { + zend_string_addref(function->common.function_name); } } /* }}} */ |