File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ PHP NEWS
12
12
. Fixed bug GH-15587 (CRC32 API build error on arm 32-bit).
13
13
(Bernd Kuhls, Thomas Petazzoni)
14
14
. Fixed bug GH-15330 (Do not scan generator frames more than once). (Arnaud)
15
+ . Fixed uninitialized lineno in constant AST of internal enums. (ilutov)
15
16
16
17
- Curl:
17
18
. FIxed bug GH-15547 (curl_multi_select overflow on timeout argument).
Original file line number Diff line number Diff line change @@ -541,19 +541,22 @@ static zend_ast_ref *create_enum_case_ast(
541
541
ast -> child [0 ]-> attr = 0 ;
542
542
ZEND_ASSERT (ZSTR_IS_INTERNED (class_name ));
543
543
ZVAL_STR (zend_ast_get_zval (ast -> child [0 ]), class_name );
544
+ Z_LINENO_P (zend_ast_get_zval (ast -> child [0 ])) = 0 ;
544
545
545
546
ast -> child [1 ] = (zend_ast * ) p ; p += sizeof (zend_ast_zval );
546
547
ast -> child [1 ]-> kind = ZEND_AST_ZVAL ;
547
548
ast -> child [1 ]-> attr = 0 ;
548
549
ZEND_ASSERT (ZSTR_IS_INTERNED (case_name ));
549
550
ZVAL_STR (zend_ast_get_zval (ast -> child [1 ]), case_name );
551
+ Z_LINENO_P (zend_ast_get_zval (ast -> child [1 ])) = 0 ;
550
552
551
553
if (value ) {
552
554
ast -> child [2 ] = (zend_ast * ) p ; p += sizeof (zend_ast_zval );
553
555
ast -> child [2 ]-> kind = ZEND_AST_ZVAL ;
554
556
ast -> child [2 ]-> attr = 0 ;
555
557
ZEND_ASSERT (!Z_REFCOUNTED_P (value ));
556
558
ZVAL_COPY_VALUE (zend_ast_get_zval (ast -> child [2 ]), value );
559
+ Z_LINENO_P (zend_ast_get_zval (ast -> child [2 ])) = 0 ;
557
560
} else {
558
561
ast -> child [2 ] = NULL ;
559
562
}
You can’t perform that action at this time.
0 commit comments