Skip to content

Commit 20bb3bb

Browse files
committed
Revert ValueError back to Warning
1 parent 8b8d3f4 commit 20bb3bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/openssl/openssl.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -3710,7 +3710,8 @@ static EVP_PKEY * php_openssl_generate_private_key(struct php_x509_request * req
37103710
EVP_PKEY * return_val = NULL;
37113711

37123712
if (req->priv_key_bits < MIN_KEY_LENGTH) {
3713-
zend_value_error("Private key must be at least %d bits", MIN_KEY_LENGTH);
3713+
php_error_docref(NULL, E_WARNING, "Private key length must be at least %d bits, configured to %d",
3714+
MIN_KEY_LENGTH, req->priv_key_bits);
37143715
return NULL;
37153716
}
37163717

0 commit comments

Comments
 (0)