From 8ae695cd7515af0bcb84844392b5b00910d5cf5b Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 6 May 2016 12:36:21 +0300 Subject: [PATCH] Fixed possible crash --- ext/opcache/Optimizer/zend_call_graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.40.0