mirror of
https://github.com/php/php-src.git
synced 2024-12-28 11:20:29 +08:00
Drop dead code in zend_call_method
As no_separation=1 is used this can not happen anymore.
This commit is contained in:
parent
0806bb39ef
commit
edde929351
@ -36,8 +36,6 @@ ZEND_API zval* zend_call_method(zval *object, zend_class_entry *obj_ce, zend_fun
|
|||||||
int result;
|
int result;
|
||||||
zend_fcall_info fci;
|
zend_fcall_info fci;
|
||||||
zval retval;
|
zval retval;
|
||||||
HashTable *function_table;
|
|
||||||
|
|
||||||
zval params[2];
|
zval params[2];
|
||||||
|
|
||||||
if (param_count > 0) {
|
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);
|
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) {
|
if (!retval_ptr) {
|
||||||
zval_ptr_dtor(&retval);
|
zval_ptr_dtor(&retval);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user