From 02e81c7c1f12bbd96bfe1c7bb0b0ef97fe895b77 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Mon, 9 Sep 2024 17:23:26 +0200 Subject: [PATCH] Fix uninitialized CG(zend_lineno) --- Zend/zend.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Zend/zend.c b/Zend/zend.c index fc092b66b9e2a..f17f1cd377c12 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -705,6 +705,7 @@ static void auto_global_copy_ctor(zval *zv) /* {{{ */ static void compiler_globals_ctor(zend_compiler_globals *compiler_globals) /* {{{ */ { compiler_globals->compiled_filename = NULL; + compiler_globals->zend_lineno = 0; compiler_globals->function_table = (HashTable *) malloc(sizeof(HashTable)); zend_hash_init(compiler_globals->function_table, 1024, NULL, ZEND_FUNCTION_DTOR, 1);