@@ -1398,14 +1398,7 @@ int zend_inference_calc_range(const zend_op_array *op_array, zend_ssa *ssa, int
1398
1398
case ZEND_RECV :
1399
1399
case ZEND_RECV_INIT :
1400
1400
if (ssa_op -> result_def == var ) {
1401
- zend_func_info * func_info = ZEND_FUNC_INFO (op_array );
1402
-
1403
- if (func_info &&
1404
- (int )opline -> op1 .num - 1 < func_info -> num_args &&
1405
- func_info -> arg_info [opline -> op1 .num - 1 ].info .has_range ) {
1406
- * tmp = func_info -> arg_info [opline -> op1 .num - 1 ].info .range ;
1407
- return 1 ;
1408
- } else if (op_array -> arg_info &&
1401
+ if (op_array -> arg_info &&
1409
1402
opline -> op1 .num <= op_array -> num_args ) {
1410
1403
zend_type type = op_array -> arg_info [opline -> op1 .num - 1 ].type ;
1411
1404
uint32_t mask = ZEND_TYPE_PURE_MASK_WITHOUT_NULL (type );
@@ -3005,7 +2998,6 @@ static zend_always_inline int _zend_update_type_info(
3005
2998
case ZEND_RECV_INIT :
3006
2999
{
3007
3000
/* Typehinting */
3008
- zend_func_info * func_info ;
3009
3001
zend_arg_info * arg_info = & op_array -> arg_info [opline -> op1 .num - 1 ];
3010
3002
3011
3003
ce = NULL ;
@@ -3014,21 +3006,8 @@ static zend_always_inline int _zend_update_type_info(
3014
3006
tmp |= MAY_BE_REF ;
3015
3007
}
3016
3008
3017
- func_info = ZEND_FUNC_INFO (op_array );
3018
- if (func_info && (int )opline -> op1 .num - 1 < func_info -> num_args ) {
3019
- tmp = (tmp & (MAY_BE_RC1 |MAY_BE_RCN |MAY_BE_REF )) |
3020
- (tmp & func_info -> arg_info [opline -> op1 .num - 1 ].info .type );
3021
- }
3022
-
3023
3009
UPDATE_SSA_TYPE (tmp , ssa_op -> result_def );
3024
- if (func_info &&
3025
- (int )opline -> op1 .num - 1 < func_info -> num_args &&
3026
- func_info -> arg_info [opline -> op1 .num - 1 ].info .ce ) {
3027
- UPDATE_SSA_OBJ_TYPE (
3028
- func_info -> arg_info [opline -> op1 .num - 1 ].info .ce ,
3029
- func_info -> arg_info [opline -> op1 .num - 1 ].info .is_instanceof ,
3030
- ssa_op -> result_def );
3031
- } else if (ce ) {
3010
+ if (ce ) {
3032
3011
UPDATE_SSA_OBJ_TYPE (ce , 1 , ssa_op -> result_def );
3033
3012
} else {
3034
3013
UPDATE_SSA_OBJ_TYPE (NULL , 0 , ssa_op -> result_def );
0 commit comments