Commit decc1568a14 for php.net

commit decc1568a14c7097a48965208eed2c6cc542051e
Author: Nora Dossche <7771979+ndossche@users.noreply.github.com>
Date:   Mon Aug 3 22:51:54 2026 +0200

    Properly propagate X509_STORE_CTX_new() (#22625)

    Propagating is consistent with other "new" failures, and avoids bailing out,
    which is inherently problematic anyway as it can cause persistent leaks
    on its own.

diff --git a/ext/openssl/openssl_backend_common.c b/ext/openssl/openssl_backend_common.c
index 7261a617af3..8adf1ac813f 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)) {