com php-src: Load lineno when compiling exprs: Zend/zend_comp ile.c
| From: | Nikita Popov | Date: | Sat, 19 Jul 2014 11:13:58 +0000 |
| Subject: | com php-src: Load lineno when compiling exprs: Zend/zend_comp ile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-80964@lists.php.net to get a copy of this message | ||
Commit: ef26f956769de6c6f1c485f2df04739bde56d89b
Author: Nikita Popov <nikic@php.net> Sat, 19 Jul 2014 13:13:58 +0200
Parents: 446cf29ab792b7f884a366b419f7f5cb7611acfe
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ef26f956769de6c6f1c485f2df04739bde56d89b
Log:
Load lineno when compiling exprs
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index f634eb7..e30bb4d 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));