Skip to content

Commit 51c64a4

Browse files
committed
fixes
1 parent 002607d commit 51c64a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Zend/zend_API.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,8 @@ ZEND_API zend_opt_long ZEND_FASTCALL zend_parse_arg_long_weak(const zval *arg, u
627627
result.value = 0;
628628
} else if (EXPECTED(Z_TYPE_P(arg) == IS_TRUE)) {
629629
result.value = 1;
630+
} else {
631+
return result;
630632
}
631633
result.has_value = true;
632634
return result;
@@ -681,6 +683,8 @@ ZEND_API zend_opt_double ZEND_FASTCALL zend_parse_arg_double_weak(const zval *ar
681683
result.value = 0.0;
682684
} else if (EXPECTED(Z_TYPE_P(arg) == IS_TRUE)) {
683685
result.value = 1.0;
686+
} else {
687+
return result;
684688
}
685689
result.has_value = true;
686690
return result;

0 commit comments

Comments
 (0)