From: Dmitry Stogov Date: Fri, 6 May 2016 09:36:21 +0000 (+0300) Subject: Fixed possible crash X-Git-Tag: php-7.1.0alpha1~183 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ae695cd7515af0bcb84844392b5b00910d5cf5b;p=php Fixed possible crash --- diff --git a/ext/opcache/Optimizer/zend_call_graph.c b/ext/opcache/Optimizer/zend_call_graph.c index f245d14eaa..c7bc7b2e3e 100644 --- a/ext/opcache/Optimizer/zend_call_graph.c +++ b/ext/opcache/Optimizer/zend_call_graph.c @@ -170,7 +170,7 @@ static int zend_analyze_calls(zend_arena **arena, zend_script *script, uint32_t call_info->next_caller = NULL; } else { zend_func_info *callee_func_info = ZEND_FUNC_INFO(&func->op_array); - call_info->next_caller = callee_func_info->caller_info; + call_info->next_caller = callee_func_info ? callee_func_info->caller_info : NULL; } } /* break missing intentionally */