Skip to content

Commit 33fea38

Browse files
committed
Fix zend_ast_get_lineno() for ZEND_AST_OP_ARRAY
1 parent bc01615 commit 33fea38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_ast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ static zend_always_inline uint32_t zend_ast_get_lineno(zend_ast *ast) {
363363
if (ast->kind == ZEND_AST_ZVAL) {
364364
zval *zv = zend_ast_get_zval(ast);
365365
return Z_LINENO_P(zv);
366-
} else if (ast->kind == ZEND_AST_CONSTANT) {
366+
} else if (ast->kind == ZEND_AST_CONSTANT || ast->kind == ZEND_AST_OP_ARRAY) {
367367
zval *zv = &((zend_ast_zval *) ast)->val;
368368
return Z_LINENO_P(zv);
369369
} else {

0 commit comments

Comments
 (0)