diff --git a/ext/openssl/openssl_backend_common.c b/ext/openssl/openssl_backend_common.c index 7261a617af32..8adf1ac813f1 100644 --- a/ext/openssl/openssl_backend_common.c +++ b/ext/openssl/openssl_backend_common.c @@ -750,7 +750,7 @@ int php_openssl_check_cert(X509_STORE *ctx, X509 *x, STACK_OF(X509) *untrustedch csc = X509_STORE_CTX_new(); if (csc == NULL) { php_openssl_store_errors(); - php_error_docref(NULL, E_ERROR, "Memory allocation failure"); + php_error_docref(NULL, E_WARNING, "Memory allocation failure"); return 0; } if (!X509_STORE_CTX_init(csc, ctx, x, untrustedchain)) {