com php-src: Removed deprecated flag: ext/opcache/Optimizer/zen d_func_info.c ext/opcache/Optimizer/zend_func_info .h
ext/opcache/Optimizer/zend_inference.c
| From: | Dmitry Stogov | Date: | Mon, 10 Oct 2016 08:48:29 +0000 |
| Subject: | com php-src: Removed deprecated flag: ext/opcache/Optimizer/zen d_func_info.c ext/opcache/Optimizer/zend_func_info .h ext/opcache/Optimizer/zend_inference.c |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94882@lists.php.net to get a copy of this message | ||
Commit: 3760bc5407f2905d5b407df9cadc05e44eb2f449
Author: Dmitry Stogov <dmitry@zend.com> Mon, 10 Oct 2016 11:48:29 +0300
Parents: 771600ee6b01709b571de0b8e86ac14647588677
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3760bc5407f2905d5b407df9cadc05e44eb2f449
Log:
Removed deprecated flag
Changed paths:
M ext/opcache/Optimizer/zend_func_info.c
M ext/opcache/Optimizer/zend_func_info.h
M ext/opcache/Optimizer/zend_inference.c
Diff:
diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c
index eb8dd1e..46153bc 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 8fcf00d...13fae8f 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 366896e..fdff328 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);