Skip to content

Commit 07d2fcc

Browse files
committed
Merge branch 'PHP-8.3'
* PHP-8.3: Fix range inference since "proper-range-semantics" RFC
2 parents d5dae8b + 42cbace commit 07d2fcc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Zend/Optimizer/zend_func_info.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static uint32_t zend_range_info(const zend_call_info *call_info, const zend_ssa
6161
uint32_t t2 = _ssa_op1_info(op_array, ssa, call_info->arg_info[1].opline,
6262
&ssa->ops[call_info->arg_info[1].opline - op_array->opcodes]);
6363
uint32_t t3 = 0;
64-
uint32_t tmp = MAY_BE_RC1 | MAY_BE_ARRAY | MAY_BE_ARRAY_EMPTY;
64+
uint32_t tmp = MAY_BE_RC1 | MAY_BE_ARRAY;
6565

6666
if (call_info->num_args == 3) {
6767
t3 = _ssa_op1_info(op_array, ssa, call_info->arg_info[2].opline,
@@ -77,9 +77,7 @@ static uint32_t zend_range_info(const zend_call_info *call_info, const zend_ssa
7777
}
7878
if ((t1 & ((MAY_BE_ANY|MAY_BE_UNDEF)-MAY_BE_DOUBLE))
7979
&& (t2 & ((MAY_BE_ANY|MAY_BE_UNDEF)-MAY_BE_DOUBLE))) {
80-
if ((t3 & MAY_BE_ANY) != MAY_BE_DOUBLE) {
81-
tmp |= MAY_BE_ARRAY_OF_LONG;
82-
}
80+
tmp |= MAY_BE_ARRAY_OF_LONG;
8381
}
8482
if (tmp & MAY_BE_ARRAY_OF_ANY) {
8583
tmp |= MAY_BE_ARRAY_PACKED;

0 commit comments

Comments
 (0)