@@ -1017,15 +1017,6 @@ static bool zend_inference_calc_range(const zend_op_array *op_array, zend_ssa *s
1017
1017
}
1018
1018
return (tmp -> min <= tmp -> max );
1019
1019
} else if (ssa -> vars [var ].definition < 0 ) {
1020
- if (var < op_array -> last_var &&
1021
- op_array -> function_name ) {
1022
-
1023
- tmp -> min = 0 ;
1024
- tmp -> max = 0 ;
1025
- tmp -> underflow = 0 ;
1026
- tmp -> overflow = 0 ;
1027
- return 1 ;
1028
- }
1029
1020
return 0 ;
1030
1021
}
1031
1022
line = ssa -> vars [var ].definition ;
@@ -4199,52 +4190,7 @@ static void zend_func_return_info(const zend_op_array *op_array,
4199
4190
if (opline -> op1_type == IS_CONST ) {
4200
4191
zval * zv = CRT_CONSTANT (opline -> op1 );
4201
4192
4202
- if (Z_TYPE_P (zv ) == IS_NULL ) {
4203
- if (tmp_has_range < 0 ) {
4204
- tmp_has_range = 1 ;
4205
- tmp_range .underflow = 0 ;
4206
- tmp_range .min = 0 ;
4207
- tmp_range .max = 0 ;
4208
- tmp_range .overflow = 0 ;
4209
- } else if (tmp_has_range ) {
4210
- if (!tmp_range .underflow ) {
4211
- tmp_range .min = MIN (tmp_range .min , 0 );
4212
- }
4213
- if (!tmp_range .overflow ) {
4214
- tmp_range .max = MAX (tmp_range .max , 0 );
4215
- }
4216
- }
4217
- } else if (Z_TYPE_P (zv ) == IS_FALSE ) {
4218
- if (tmp_has_range < 0 ) {
4219
- tmp_has_range = 1 ;
4220
- tmp_range .underflow = 0 ;
4221
- tmp_range .min = 0 ;
4222
- tmp_range .max = 0 ;
4223
- tmp_range .overflow = 0 ;
4224
- } else if (tmp_has_range ) {
4225
- if (!tmp_range .underflow ) {
4226
- tmp_range .min = MIN (tmp_range .min , 0 );
4227
- }
4228
- if (!tmp_range .overflow ) {
4229
- tmp_range .max = MAX (tmp_range .max , 0 );
4230
- }
4231
- }
4232
- } else if (Z_TYPE_P (zv ) == IS_TRUE ) {
4233
- if (tmp_has_range < 0 ) {
4234
- tmp_has_range = 1 ;
4235
- tmp_range .underflow = 0 ;
4236
- tmp_range .min = 1 ;
4237
- tmp_range .max = 1 ;
4238
- tmp_range .overflow = 0 ;
4239
- } else if (tmp_has_range ) {
4240
- if (!tmp_range .underflow ) {
4241
- tmp_range .min = MIN (tmp_range .min , 1 );
4242
- }
4243
- if (!tmp_range .overflow ) {
4244
- tmp_range .max = MAX (tmp_range .max , 1 );
4245
- }
4246
- }
4247
- } else if (Z_TYPE_P (zv ) == IS_LONG ) {
4193
+ if (Z_TYPE_P (zv ) == IS_LONG ) {
4248
4194
if (tmp_has_range < 0 ) {
4249
4195
tmp_has_range = 1 ;
4250
4196
tmp_range .underflow = 0 ;
0 commit comments