summaryrefslogtreecommitdiff
path: root/ext/opcache/Optimizer/zend_call_graph.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-02-05 19:40:06 +0300
committerDmitry Stogov <dmitry@zend.com>2018-02-05 19:40:06 +0300
commit3a794d39f081f73b2204aed8b80163a197ab41c3 (patch)
tree90af4978f502d85b1a1ac1e1e72ebeaf9e65d6bc /ext/opcache/Optimizer/zend_call_graph.c
parent7416562ab0c1062722c43c6b55d38e1a79f217cb (diff)
downloadphp-git-3a794d39f081f73b2204aed8b80163a197ab41c3.tar.gz
Avoid repeatable ARG_SHOULD_BE_SENT_BY_REF() checks in FETCH_*FUNC_ARG and following SEND_VAR_EX. Perform the check once in a new CHECK_FUNC_ARG opcode and reuse in the following FETCH_*FUNC_ARG and SEND_FUNC_ARG (SEND_VAR_EX replacement).
Diffstat (limited to 'ext/opcache/Optimizer/zend_call_graph.c')
-rw-r--r--ext/opcache/Optimizer/zend_call_graph.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/opcache/Optimizer/zend_call_graph.c b/ext/opcache/Optimizer/zend_call_graph.c
index 886a793971..a23e9ead63 100644
--- a/ext/opcache/Optimizer/zend_call_graph.c
+++ b/ext/opcache/Optimizer/zend_call_graph.c
@@ -152,6 +152,7 @@ int zend_analyze_calls(zend_arena **arena, zend_script *script, uint32_t build_f
case ZEND_SEND_VAR:
case ZEND_SEND_VAL_EX:
case ZEND_SEND_VAR_EX:
+ case ZEND_SEND_FUNC_ARG:
case ZEND_SEND_REF:
case ZEND_SEND_VAR_NO_REF:
case ZEND_SEND_VAR_NO_REF_EX: