From f88756b8d4a92f6f2a04458d1178221a673d246c Mon Sep 17 00:00:00 2001 From: lazerg Date: Thu, 5 Nov 2026 06:09:20 +0500 Subject: [PATCH] Fix GH-25195: smm_shared_globals left dangling without an SHM backend --- ext/opcache/zend_shared_alloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c index 986fa52a146f..3167e40249bf 100644 --- a/ext/opcache/zend_shared_alloc.c +++ b/ext/opcache/zend_shared_alloc.c @@ -240,6 +240,7 @@ int zend_shared_alloc_startup(size_t requested_size, size_t reserved_size) if (!g_shared_alloc_handler) { /* try memory handlers in order */ if (handler_table->name == NULL) { + smm_shared_globals = NULL; return NO_SHM_BACKEND; } for (he = handler_table; he->name; he++) {