Skip to content

Commit 63bfd30

Browse files
committed
shrink patch
1 parent 1893668 commit 63bfd30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Zend/zend_execute.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -723,13 +723,14 @@ ZEND_API ZEND_COLD void zend_verify_arg_error(
723723

724724
static bool zend_verify_weak_scalar_type_hint(uint32_t type_mask, zval *arg)
725725
{
726+
zend_long lval;
727+
double dval;
728+
726729
/* Type preference order: int -> float -> string -> bool */
727730
if (type_mask & MAY_BE_LONG) {
728731
/* For an int|float union type and string value,
729732
* determine chosen type by is_numeric_string() semantics. */
730733
if ((type_mask & MAY_BE_DOUBLE) && Z_TYPE_P(arg) == IS_STRING) {
731-
zend_long lval;
732-
double dval;
733734
uint8_t type = is_numeric_str_function(Z_STR_P(arg), &lval, &dval);
734735
if (type == IS_LONG) {
735736
zend_string_release(Z_STR_P(arg));

0 commit comments

Comments
 (0)