Skip to content

Commit 619ad88

Browse files
committed
Fix jit with incompatible float to long for isset
1 parent adf5a98 commit 619ad88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_helpers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ static int ZEND_FASTCALL zend_jit_isset_dim_helper(zval *container, zval *offset
12721272
if (Z_TYPE_P(offset) < IS_STRING /* simple scalar types */
12731273
|| (Z_TYPE_P(offset) == IS_STRING /* or numeric string */
12741274
&& IS_LONG == is_numeric_string(Z_STRVAL_P(offset), Z_STRLEN_P(offset), NULL, NULL, false))) {
1275-
lval = zval_get_long(offset);
1275+
lval = zval_get_long_ex(offset, /* is_strict */ true);
12761276
goto isset_str_offset;
12771277
}
12781278
}

0 commit comments

Comments
 (0)