From 3760bc5407f2905d5b407df9cadc05e44eb2f449 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 10 Oct 2016 11:48:29 +0300 Subject: [PATCH] Removed deprecated flag --- ext/opcache/Optimizer/zend_func_info.c | 6 +----- ext/opcache/Optimizer/zend_func_info.h | 1 - ext/opcache/Optimizer/zend_inference.c | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c index eb8dd1eeff..46153bc2ce 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -72,10 +72,6 @@ static uint32_t zend_strlen_info(const zend_call_info *call_info, const zend_ssa /* warning, and returns NULL */ tmp |= FUNC_MAY_WARN | MAY_BE_NULL; } - if ((arg_info & MAY_BE_ANY) == MAY_BE_STRING) { - /* TODO: strlen() may be overriden by mbstring */ - tmp |= FUNC_MAY_INLINE; - } } else { tmp |= MAY_BE_LONG | FUNC_MAY_WARN | MAY_BE_NULL; } @@ -134,7 +130,7 @@ static uint32_t zend_is_type_info(const zend_call_info *call_info, const zend_ss { if (call_info->caller_init_opline->extended_value == (uint32_t)call_info->num_args && call_info->num_args == 1) { - return MAY_BE_FALSE | MAY_BE_TRUE | FUNC_MAY_INLINE; + return MAY_BE_FALSE | MAY_BE_TRUE; } else { return MAY_BE_FALSE | MAY_BE_TRUE | FUNC_MAY_WARN; } diff --git a/ext/opcache/Optimizer/zend_func_info.h b/ext/opcache/Optimizer/zend_func_info.h index 8fcf00d26a..13fae8ff0b 100644 --- a/ext/opcache/Optimizer/zend_func_info.h +++ b/ext/opcache/Optimizer/zend_func_info.h @@ -35,7 +35,6 @@ * returned by zend_get_func_info() */ #define FUNC_MAY_WARN (1<<30) -#define FUNC_MAY_INLINE (1<<31) typedef struct _zend_func_info zend_func_info; typedef struct _zend_call_info zend_call_info; diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c index 366896e79b..fdff328dd7 100644 --- a/ext/opcache/Optimizer/zend_inference.c +++ b/ext/opcache/Optimizer/zend_inference.c @@ -3423,7 +3423,7 @@ static void zend_update_type_info(const zend_op_array *op_array, if (!call_info) { goto unknown_opcode; } - tmp = zend_get_func_info(call_info, ssa) & ~(FUNC_MAY_WARN|FUNC_MAY_INLINE); + tmp = zend_get_func_info(call_info, ssa) & ~FUNC_MAY_WARN; UPDATE_SSA_TYPE(tmp, ssa_ops[i].result_def); if (call_info->callee_func->type == ZEND_USER_FUNCTION) { func_info = ZEND_FUNC_INFO(&call_info->callee_func->op_array); -- 2.40.0