Skip to content

Commit f9d4c88

Browse files
committed
fixup! Support first-class callables in const-expressions
1 parent b563c13 commit f9d4c88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_ast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ZEND_API zend_ast * ZEND_FASTCALL zend_ast_create_fcc(void) {
6060
ast = zend_ast_alloc(sizeof(zend_ast_fcc));
6161
ast->kind = ZEND_AST_CALLABLE_CONVERT;
6262
ast->attr = 0;
63-
ast->lineno = ZEND_MAP_PTR_NEW_OFFSET();
63+
ast->lineno = CG(zend_lineno);
6464
ZEND_MAP_PTR_INIT(ast->fptr, NULL);
6565

6666
return (zend_ast *) ast;

0 commit comments

Comments
 (0)