com php-src: Fix zend_get_func_info(): ext/opcach e/Optimizer/zend_func_info.c
| From: | Nikita Popov | Date: | Fri, 18 Dec 2015 16:37:13 +0000 |
| Subject: | com php-src: Fix zend_get_func_info(): ext/opcach e/Optimizer/zend_func_info.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-90341@lists.php.net to get a copy of this message | ||
Commit: 8ca21876e1351b9e120fbf49d902bb8d03a7ca2b
Author: Nikita Popov <nikic@php.net> Fri, 18 Dec 2015 17:33:36 +0100
Parents: 56b8f474912afb5401563ccfc8f10113a35d69ae
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8ca21876e1351b9e120fbf49d902bb8d03a7ca2b
Log:
Fix zend_get_func_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 b4171b3..43bf01c 100644
--- a/ext/opcache/Optimizer/zend_func_info.c
+++ b/ext/opcache/Optimizer/zend_func_info.c
@@ -1216,7 +1216,7 @@ uint32_t zend_get_func_info(const zend_call_info *call_info, const zend_ssa
*ssa
if (call_info->callee_func->type == ZEND_INTERNAL_FUNCTION) {
func_info_t *info;
- if ((info = zend_hash_find_ptr(&func_info,
Z_STR_P(CRT_CONSTANT_EX((zend_op_array*)call_info->callee_func,
call_info->caller_init_opline->op2, ssa->rt_constants)))) != NULL) {
+ 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) {
ret = info->info_func(call_info, ssa);
} else {