From: Nikita Popov Date: Sat, 19 Jul 2014 11:13:58 +0000 (+0200) Subject: Load lineno when compiling exprs X-Git-Tag: POST_AST_MERGE^2~122 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef26f956769de6c6f1c485f2df04739bde56d89b;p=php Load lineno when compiling exprs --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index f634eb7b37..e30bb4d123 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -7351,6 +7351,8 @@ void zend_compile_stmt(zend_ast *ast TSRMLS_DC) { } void zend_compile_expr(znode *result, zend_ast *ast TSRMLS_DC) { + CG(zend_lineno) = ast->lineno; + switch (ast->kind) { case ZEND_AST_ZVAL: ZVAL_COPY(&result->u.constant, zend_ast_get_zval(ast));