diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2014-04-11 20:13:24 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2014-04-11 20:13:24 +0200 |
commit | 096e40a027eb3df6364c3674660b8c9592e1f1b6 (patch) | |
tree | dc5a6b510864c88b79476a1a607fd8d5ad8c86f6 /Zend/zend_ast.c | |
parent | 99d1a1bb3f96364d1ee7bf3e9c84215001200112 (diff) | |
download | php-git-096e40a027eb3df6364c3674660b8c9592e1f1b6.tar.gz |
Fixed tests for recent constant array changes
Diffstat (limited to 'Zend/zend_ast.c')
-rw-r--r-- | Zend/zend_ast.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_ast.c b/Zend/zend_ast.c index d7fbba1215..583a52321b 100644 --- a/Zend/zend_ast.c +++ b/Zend/zend_ast.c @@ -351,9 +351,11 @@ ZEND_API zend_ast *zend_ast_copy(zend_ast *ast) zend_ast *new = emalloc(sizeof(zend_ast) + sizeof(zend_ast*) * (ast->children - 1)); int i; new->kind = ast->kind; + new->children = ast->children; for (i = 0; i < ast->children; i++) { (&new->u.child)[i] = zend_ast_copy((&ast->u.child)[i]); } + return new; } return zend_ast_create_dynamic(ast->kind); } |