Skip to content

Commit 9292bf0

Browse files
committed
build fixes
1 parent f6600bd commit 9292bf0

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

ext/bcmath/bcmath.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,8 +1183,14 @@ static zend_result bcmath_number_parse_num(const zval *zv, zend_object **obj, ze
11831183
*lval = 0;
11841184
return FAILURE;
11851185

1186-
default:
1187-
return zend_parse_arg_long_slow(zv, lval, 1 /* dummy */) ? SUCCESS : FAILURE;
1186+
default: {
1187+
zend_opt_long result = zend_parse_arg_long_slow(zv, 1 /* dummy */);
1188+
if (result.has_value) {
1189+
*lval = result.value;
1190+
return SUCCESS;
1191+
}
1192+
return FAILURE;
1193+
}
11881194
}
11891195
}
11901196
}

ext/openssl/openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2790,7 +2790,7 @@ PHP_FUNCTION(openssl_pkcs7_sign)
27902790
X509 *cert = NULL;
27912791
zend_object *cert_obj;
27922792
zend_string *cert_str;
2793-
zval *zprivkey, * zheaders;
2793+
zval *zprivkey, * zheaders = NULL;
27942794
zval * hval;
27952795
EVP_PKEY * privkey = NULL;
27962796
zend_long flags = PKCS7_DETACHED;

0 commit comments

Comments
 (0)