summaryrefslogtreecommitdiff
path: root/Zend/zend_language_parser.y
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-08-20 16:10:09 +0300
committerDmitry Stogov <dmitry@zend.com>2018-08-20 16:10:09 +0300
commitb8828926f2f6bc9d109960c2d4e2d399f7c0dc5c (patch)
tree2f92cb143c41526b3ca91f0024fdec87f56e0694 /Zend/zend_language_parser.y
parent1621f1739d80b481348102e82360d0c24f4c5e0e (diff)
downloadphp-git-b8828926f2f6bc9d109960c2d4e2d399f7c0dc5c.tar.gz
Avoid hash lookups in BIND_STATIC and BIND_LEXICAL opcode handlers.
Encode static variable offset into opline->extended_value.
Diffstat (limited to 'Zend/zend_language_parser.y')
-rw-r--r--Zend/zend_language_parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_language_parser.y b/Zend/zend_language_parser.y
index e984d5254e..c6060dee32 100644
--- a/Zend/zend_language_parser.y
+++ b/Zend/zend_language_parser.y
@@ -1021,7 +1021,7 @@ lexical_var_list:
lexical_var:
T_VARIABLE { $$ = $1; }
- | '&' T_VARIABLE { $$ = $2; $$->attr = 1; }
+ | '&' T_VARIABLE { $$ = $2; $$->attr = ZEND_BIND_REF; }
;
function_call: