diff options
| author | Nikita Popov <nikic@php.net> | 2016-10-29 17:11:55 +0200 |
|---|---|---|
| committer | Nikita Popov <nikic@php.net> | 2016-10-29 17:11:55 +0200 |
| commit | edde9293516d6b9ec40358fb23091e0a166bfe6b (patch) | |
| tree | 2168328e7292268fe4f3278c8b4aace88d8ff6a0 /Zend/zend_interfaces.c | |
| parent | 0806bb39ef60c68d3ecf741ee3b3d8e291f655ae (diff) | |
| download | php-git-edde9293516d6b9ec40358fb23091e0a166bfe6b.tar.gz | |
Drop dead code in zend_call_method
As no_separation=1 is used this can not happen anymore.
Diffstat (limited to 'Zend/zend_interfaces.c')
| -rw-r--r-- | Zend/zend_interfaces.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Zend/zend_interfaces.c b/Zend/zend_interfaces.c index 8264cddc32..6eb4e17866 100644 --- a/Zend/zend_interfaces.c +++ b/Zend/zend_interfaces.c @@ -36,8 +36,6 @@ ZEND_API zval* zend_call_method(zval *object, zend_class_entry *obj_ce, zend_fun int result; zend_fcall_info fci; zval retval; - HashTable *function_table; - zval params[2]; if (param_count > 0) { @@ -109,13 +107,6 @@ ZEND_API zval* zend_call_method(zval *object, zend_class_entry *obj_ce, zend_fun zend_error_noreturn(E_CORE_ERROR, "Couldn't execute method %s%s%s", obj_ce ? ZSTR_VAL(obj_ce->name) : "", obj_ce ? "::" : "", function_name); } } - /* copy arguments back, they might be changed by references */ - if (param_count > 0 && Z_ISREF(params[0]) && !Z_ISREF_P(arg1)) { - ZVAL_COPY_VALUE(arg1, ¶ms[0]); - } - if (param_count > 1 && Z_ISREF(params[1]) && !Z_ISREF_P(arg2)) { - ZVAL_COPY_VALUE(arg2, ¶ms[1]); - } if (!retval_ptr) { zval_ptr_dtor(&retval); return NULL; |
