Skip to content

Commit a42181b

Browse files
committed
Remove useless match jump table restriction
1 parent 0a3b360 commit a42181b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Zend/zend_compile.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5206,12 +5206,6 @@ static zend_uchar determine_match_jumptable_type(zend_ast_list *arms) {
52065206
/* Non-uniform case types */
52075207
return IS_UNDEF;
52085208
}
5209-
5210-
if (Z_TYPE_P(cond_zv) == IS_STRING
5211-
&& is_numeric_string(Z_STRVAL_P(cond_zv), Z_STRLEN_P(cond_zv), NULL, NULL, 0)) {
5212-
/* Numeric strings cannot be compared with a simple hash lookup */
5213-
return IS_UNDEF;
5214-
}
52155209
}
52165210
}
52175211

0 commit comments

Comments
 (0)