summaryrefslogtreecommitdiff
path: root/Zend/zend_ast.h
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2014-07-18 15:47:46 +0200
committerNikita Popov <nikic@php.net>2014-07-18 15:47:46 +0200
commitadbddf4e5b6ae33c758d239a25488eb692777a0c (patch)
treeb63146630da0e8ed101b6e56eddaa609c8976775 /Zend/zend_ast.h
parent405b97e8a9c2f63a8e6d334227aa01b7ee9606ee (diff)
downloadphp-git-adbddf4e5b6ae33c758d239a25488eb692777a0c.tar.gz
Support static closures
Diffstat (limited to 'Zend/zend_ast.h')
-rw-r--r--Zend/zend_ast.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zend/zend_ast.h b/Zend/zend_ast.h
index d3eca8117c..f20446fd22 100644
--- a/Zend/zend_ast.h
+++ b/Zend/zend_ast.h
@@ -125,9 +125,10 @@ typedef struct _zend_ast_zval {
/* Using a separate structure as it needs a bunch of extra information. */
typedef struct _zend_ast_func_decl {
zend_ast_kind kind;
- zend_bool returns_ref;
+ zend_ast_attr attr; /* Unused - for structure compatibility */
zend_uint start_lineno;
zend_uint end_lineno;
+ zend_uint flags;
unsigned char *lex_pos;
zend_string *doc_comment;
zend_string *name;
@@ -148,7 +149,7 @@ ZEND_API zend_ast *zend_ast_create(
zend_uint children, zend_ast_kind kind, ...);
ZEND_API zend_ast *zend_ast_create_func_decl(
- zend_ast_kind kind, zend_bool by_ref, zend_uint start_lineno, zend_uint end_lineno,
+ zend_ast_kind kind, zend_uint flags, zend_uint start_lineno, zend_uint end_lineno,
unsigned char *lex_pos, zend_string *doc_comment, zend_string *name,
zend_ast *params, zend_ast *uses, zend_ast *stmt
);