summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2016-03-02 16:57:08 +0300
committerDmitry Stogov <dmitry@zend.com>2016-03-02 16:57:08 +0300
commit960b3755b3ca97f3ea2f98f65f1ac88f24d320ac (patch)
treeb212de5443b19c615ff39aa9a2cfa95a0010d441 /Zend/zend_execute_API.c
parent701edb8c82439ed5986be0718a5246cd37452f96 (diff)
parent908b662f7fcfbc032f70ece82c25fdc8d21de4b3 (diff)
downloadphp-git-960b3755b3ca97f3ea2f98f65f1ac88f24d320ac.tar.gz
Merge branch 'PHP-7.0'
* PHP-7.0: PHP-7 zend_call_function() doesn't support symbol_table substitution
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r--Zend/zend_execute_API.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index ed2170d5df..733688d2c7 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -851,6 +851,9 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache) /
ZEND_ADD_CALL_FLAG(call, ZEND_CALL_CLOSURE);
}
+ /* PHP-7 doesn't support symbol_table substitution for functions */
+ ZEND_ASSERT(fci->symbol_table == NULL);
+
if (func->type == ZEND_USER_FUNCTION) {
int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0;
EG(scope) = func->common.scope;