File tree 3 files changed +3
-3
lines changed 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_fcc(void) {
61
61
ast -> kind = ZEND_AST_CALLABLE_CONVERT ;
62
62
ast -> attr = 0 ;
63
63
ast -> lineno = ZEND_MAP_PTR_NEW_OFFSET ();
64
- ZEND_MAP_PTR_NEW (ast -> fptr );
64
+ ZEND_MAP_PTR_INIT (ast -> fptr , NULL );
65
65
66
66
return (zend_ast * ) ast ;
67
67
}
Original file line number Diff line number Diff line change @@ -11247,7 +11247,7 @@ static void zend_compile_const_expr_fcc(zend_ast **ast_ptr)
11247
11247
if ((* args_ast )-> kind != ZEND_AST_CALLABLE_CONVERT ) {
11248
11248
zend_error_noreturn (E_COMPILE_ERROR , "Constant expression contains invalid operations" );
11249
11249
}
11250
- * args_ast = zend_ast_create_fcc ( );
11250
+ ZEND_MAP_PTR_NEW ((( zend_ast_fcc * ) * args_ast ) -> fptr );
11251
11251
11252
11252
switch ((* ast_ptr )-> kind ) {
11253
11253
case ZEND_AST_CALL : {
Original file line number Diff line number Diff line change @@ -896,7 +896,7 @@ return_type:
896
896
argument_list :
897
897
' (' ' )' { $$ = zend_ast_create_list(0 , ZEND_AST_ARG_LIST); }
898
898
| ' (' non_empty_argument_list possible_comma ' )' { $$ = $2 ; }
899
- | ' (' T_ELLIPSIS ' )' { $$ = zend_ast_create(ZEND_AST_CALLABLE_CONVERT ); }
899
+ | ' (' T_ELLIPSIS ' )' { $$ = zend_ast_create_fcc( ); }
900
900
;
901
901
902
902
non_empty_argument_list :
You can’t perform that action at this time.
0 commit comments