com php-src: Fixed function info: ext/opcache/Optimizer/zend_ func_info.c

From: Date: Fri, 09 Sep 2016 14:40:08 +0000
Subject: com php-src: Fixed function info: ext/opcache/Optimizer/zend_ func_info.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94405@lists.php.net to get a copy of this message
Commit: 2a3b75a0ebf4e711c8362ed91cbf505c75ec483c Author: Xinchen Hui <laruence@gmail.com> Fri, 9 Sep 2016 22:40:08 +0800 Parents: 7d80b64ac8fd270a12766d3a95bcb5e05c6a7571 Branches: PHP-7.1 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2a3b75a0ebf4e711c8362ed91cbf505c75ec483c Log: Fixed function info Changed paths: M ext/opcache/Optimizer/zend_func_info.c Diff: diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c index 0097e30..0e4e444 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -22,6 +22,7 @@ #include "zend_compile.h" #include "zend_extensions.h" #include "zend_ssa.h" +#include "zend_optimizer_internal.h" #include "zend_inference.h" #include "zend_call_graph.h" #include "zend_func_info.h" @@ -1212,7 +1213,9 @@ uint32_t zend_get_func_info(const zend_call_info *call_info, const zend_ssa *ssa func_info_t *info; if ((info = zend_hash_find_ptr(&func_info, Z_STR_P(CRT_CONSTANT_EX(call_info->caller_op_array, call_info->caller_init_opline->op2, ssa->rt_constants)))) != NULL) { - if (info->info_func) { + if (UNEXPECTED(zend_optimizer_is_disabled_func(info->name, info->name_len))) { + ret = MAY_BE_NULL; + } else if (info->info_func) { ret = info->info_func(call_info, ssa); } else { ret = info->info;

« previous php.cvs (#94405) next »