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 @@ -534,19 +534,22 @@ static zend_ast_ref *create_enum_case_ast(
534
534
ast -> child [0 ]-> attr = 0 ;
535
535
ZEND_ASSERT (ZSTR_IS_INTERNED (class_name ));
536
536
ZVAL_STR (zend_ast_get_zval (ast -> child [0 ]), class_name );
537
+ Z_LINENO_P (zend_ast_get_zval (ast -> child [0 ])) = 0 ;
537
538
538
539
ast -> child [1 ] = (zend_ast * ) p ; p += sizeof (zend_ast_zval );
539
540
ast -> child [1 ]-> kind = ZEND_AST_ZVAL ;
540
541
ast -> child [1 ]-> attr = 0 ;
541
542
ZEND_ASSERT (ZSTR_IS_INTERNED (case_name ));
542
543
ZVAL_STR (zend_ast_get_zval (ast -> child [1 ]), case_name );
544
+ Z_LINENO_P (zend_ast_get_zval (ast -> child [1 ])) = 0 ;
543
545
544
546
if (value ) {
545
547
ast -> child [2 ] = (zend_ast * ) p ; p += sizeof (zend_ast_zval );
546
548
ast -> child [2 ]-> kind = ZEND_AST_ZVAL ;
547
549
ast -> child [2 ]-> attr = 0 ;
548
550
ZEND_ASSERT (!Z_REFCOUNTED_P (value ));
549
551
ZVAL_COPY_VALUE (zend_ast_get_zval (ast -> child [2 ]), value );
552
+ Z_LINENO_P (zend_ast_get_zval (ast -> child [2 ])) = 0 ;
550
553
} else {
551
554
ast -> child [2 ] = NULL ;
552
555
}
You can’t perform that action at this time.
0 commit comments