Skip to content

Commit 9b16025

Browse files
committed
Move SEPARATE_ARRAY below the check.
1 parent 620ef44 commit 9b16025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/Optimizer/sccp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,10 +560,10 @@ static inline int ct_eval_add_array_elem(zval *result, zval *value, zval *key) {
560560
break;
561561
case IS_DOUBLE: {
562562
zend_long lval = zend_dval_to_lval(Z_DVAL_P(key));
563-
SEPARATE_ARRAY(result);
564563
if (!zend_is_long_compatible(Z_DVAL_P(key), lval)) {
565564
return FAILURE;
566565
}
566+
SEPARATE_ARRAY(result);
567567
value = zend_hash_index_update(
568568
Z_ARR_P(result), lval, value);
569569
break;

0 commit comments

Comments
 (0)