We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
zend_ast_get_lineno()
ZEND_AST_OP_ARRAY
1 parent bc01615 commit 33fea38Copy full SHA for 33fea38
Zend/zend_ast.h
@@ -363,7 +363,7 @@ static zend_always_inline uint32_t zend_ast_get_lineno(zend_ast *ast) {
363
if (ast->kind == ZEND_AST_ZVAL) {
364
zval *zv = zend_ast_get_zval(ast);
365
return Z_LINENO_P(zv);
366
- } else if (ast->kind == ZEND_AST_CONSTANT) {
+ } else if (ast->kind == ZEND_AST_CONSTANT || ast->kind == ZEND_AST_OP_ARRAY) {
367
zval *zv = &((zend_ast_zval *) ast)->val;
368
369
} else {
0 commit comments