From cb60728261f1113a0531c215e9c78db458507c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C5=82adzimir=20Tsykun?= Date: Sat, 17 Feb 2024 12:27:46 +0100 Subject: [PATCH] Fix static members null pointer exception --- extension/meminfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/meminfo.c b/extension/meminfo.c index b91b5b5..d7efc0e 100644 --- a/extension/meminfo.c +++ b/extension/meminfo.c @@ -144,7 +144,7 @@ void meminfo_browse_class_static_members(php_stream *stream, HashTable *visited while ((class_entry = zend_hash_get_current_data_ptr_ex(CG(class_table), &ce_pos)) != NULL) { #if PHP_VERSION_ID >= 70400 - if (class_entry->default_static_members_count > 0 && CE_STATIC_MEMBERS(class_entry)) { + if (class_entry->default_static_members_count > 0 && ZEND_MAP_PTR(class_entry->static_members_table) && CE_STATIC_MEMBERS(class_entry)) { #else if (class_entry->static_members_table) { #endif