com php-src: Drop dead code in zend_call_method: Zend/z end_interfaces.c

From: Date: Sat, 29 Oct 2016 15:11:55 +0000
Subject: com php-src: Drop dead code in zend_call_method: Zend/z end_interfaces.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95337@lists.php.net to get a copy of this message
Commit: edde9293516d6b9ec40358fb23091e0a166bfe6b Author: Nikita Popov <nikic@php.net> Sat, 29 Oct 2016 17:11:55 +0200 Parents: 0806bb39ef60c68d3ecf741ee3b3d8e291f655ae Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=edde9293516d6b9ec40358fb23091e0a166bfe6b Log: Drop dead code in zend_call_method As no_separation=1 is used this can not happen anymore. Changed paths: M Zend/zend_interfaces.c Diff: diff --git a/Zend/zend_interfaces.c b/Zend/zend_interfaces.c index 8264cdd..6eb4e17 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, &params[0]); - } - if (param_count > 1 && Z_ISREF(params[1]) && !Z_ISREF_P(arg2)) { - ZVAL_COPY_VALUE(arg2, &params[1]); - } if (!retval_ptr) { zval_ptr_dtor(&retval); return NULL;

« previous php.cvs (#95337) next »