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++) {