diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-05-02 14:57:16 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-05-02 15:04:03 +0200 |
commit | f3e5bbe6f37ce52a9ecd42812389e6aaf3aa2892 (patch) | |
tree | 4d7baab746e966624ee4557c2153e5099cbbcbd3 /Zend/zend_compile.h | |
parent | eaab0a2b6f6f61bc0b8c42579a74a626b179a070 (diff) | |
download | php-git-f3e5bbe6f37ce52a9ecd42812389e6aaf3aa2892.tar.gz |
Implement arrow functions
Per RFC: https://wiki.php.net/rfc/arrow_functions_v2
Co-authored-by: Levi Morrison <levim@php.net>
Co-authored-by: Bob Weinand <bobwei9@hotmail.com>
Diffstat (limited to 'Zend/zend_compile.h')
-rw-r--r-- | Zend/zend_compile.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h index 93cddfa806..e03408a572 100644 --- a/Zend/zend_compile.h +++ b/Zend/zend_compile.h @@ -123,6 +123,7 @@ typedef union _zend_parser_stack_elem { zend_ast *ast; zend_string *str; zend_ulong num; + unsigned char *ptr; } zend_parser_stack_elem; void zend_compile_top_stmt(zend_ast *ast); @@ -982,8 +983,9 @@ static zend_always_inline int zend_check_arg_send_type(const zend_function *zf, #define ZEND_RETURN_VAL 0 #define ZEND_RETURN_REF 1 -#define ZEND_BIND_VAL 0 -#define ZEND_BIND_REF 1 +#define ZEND_BIND_VAL 0 +#define ZEND_BIND_REF 1 +#define ZEND_BIND_IMPLICIT 2 #define ZEND_RETURNS_FUNCTION (1<<0) #define ZEND_RETURNS_VALUE (1<<1) |