Skip to content

Commit bf9cf3d

Browse files
committed
Revert ValueError back to Warning
1 parent 2010e41 commit bf9cf3d

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
@@ -3658,7 +3658,8 @@ static EVP_PKEY * php_openssl_generate_private_key(struct php_x509_request * req
36583658
EVP_PKEY * return_val = NULL;
36593659

36603660
if (req->priv_key_bits < MIN_KEY_LENGTH) {
3661-
zend_value_error("Private key must be at least %d bits", MIN_KEY_LENGTH);
3661+
php_error_docref(NULL, E_WARNING, "Private key length must be at least %d bits, configured to %d",
3662+
MIN_KEY_LENGTH, req->priv_key_bits);
36623663
return NULL;
36633664
}
36643665

0 commit comments

Comments
 (0)