Skip to content

Commit 1f35e2a

Browse files
committed
Fix uninitialized CG(zend_lineno)
Closes GH-15813
1 parent b9fdc0b commit 1f35e2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,7 @@ static void auto_global_copy_ctor(zval *zv) /* {{{ */
705705
static void compiler_globals_ctor(zend_compiler_globals *compiler_globals) /* {{{ */
706706
{
707707
compiler_globals->compiled_filename = NULL;
708+
compiler_globals->zend_lineno = 0;
708709

709710
compiler_globals->function_table = (HashTable *) malloc(sizeof(HashTable));
710711
zend_hash_init(compiler_globals->function_table, 1024, NULL, ZEND_FUNCTION_DTOR, 1);

0 commit comments

Comments
 (0)