com php-src: PHP-7 zend_call_function() doesn't s upport symbol_table substitution: Zend/zend_execute _API.c sapi/phpdbg/phpdbg_prompt.c

From: Date: Wed, 02 Mar 2016 13:56:39 +0000
Subject: com php-src: PHP-7 zend_call_function() doesn't s upport symbol_table substitution: Zend/zend_execute _API.c sapi/phpdbg/phpdbg_prompt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91253@lists.php.net to get a copy of this message
Commit: 908b662f7fcfbc032f70ece82c25fdc8d21de4b3 Author: Dmitry Stogov <dmitry@zend.com> Wed, 2 Mar 2016 16:56:39 +0300 Parents: b6bbe33f0555a9f5a2085b1716659a94232fe0da Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=908b662f7fcfbc032f70ece82c25fdc8d21de4b3 Log: PHP-7 zend_call_function() doesn't support symbol_table substitution Changed paths: M Zend/zend_execute_API.c M sapi/phpdbg/phpdbg_prompt.c Diff: diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 56ad436..2a7c8f4 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; diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index 558ca46..31d3c01 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/phpdbg_prompt.c @@ -121,7 +121,8 @@ static inline int phpdbg_call_register(phpdbg_param_t *stack) /* {{{ */ ZVAL_STRINGL(&fci.function_name, lc_name, name->len); fci.size = sizeof(zend_fcall_info); fci.function_table = &PHPDBG_G(registered); - fci.symbol_table = zend_rebuild_symbol_table(); + //???fci.symbol_table = zend_rebuild_symbol_table(); + fci.symbol_table = NULL; fci.object = NULL; fci.retval = &fretval; fci.no_separation = 1;

« previous php.cvs (#91253) next »