Skip to content

Commit 1ee8dfd

Browse files
authored
Remove pointless EG(exception) checks when parsing coercive string argument (#20568)
The is_numeric_str_function() family cannot throw.
1 parent ca914ee commit 1ee8dfd

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Zend/zend_API.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,6 @@ ZEND_API bool ZEND_FASTCALL zend_parse_arg_long_weak(const zval *arg, zend_long
592592
return 0;
593593
}
594594
}
595-
if (UNEXPECTED(EG(exception))) {
596-
return 0;
597-
}
598595
} else if (EXPECTED(Z_TYPE_P(arg) < IS_TRUE)) {
599596
if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("int", arg_num)) {
600597
return 0;
@@ -641,9 +638,6 @@ ZEND_API bool ZEND_FASTCALL zend_parse_arg_double_weak(const zval *arg, double *
641638
return 0;
642639
}
643640
}
644-
if (UNEXPECTED(EG(exception))) {
645-
return 0;
646-
}
647641
} else if (EXPECTED(Z_TYPE_P(arg) < IS_TRUE)) {
648642
if (UNEXPECTED(Z_TYPE_P(arg) == IS_NULL) && !zend_null_arg_deprecated("float", arg_num)) {
649643
return 0;

0 commit comments

Comments
 (0)