diff options
author | Xinchen Hui <laruence@php.net> | 2014-05-27 17:46:01 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2014-05-27 17:48:34 +0800 |
commit | 1966116791255bd552bd90747049fa99afac8284 (patch) | |
tree | a26aedf7c25dcb45553c7afa2c33467d1ba5c4b2 | |
parent | 3a1f79d51d81d3a2b0bd70bdf986fa192c53c56b (diff) | |
download | php-git-1966116791255bd552bd90747049fa99afac8284.tar.gz |
retval's initializing is already taken by zend_call_function
-rw-r--r-- | Zend/zend_object_handlers.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index d5f2096277..7a2b6da99e 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -182,10 +182,8 @@ static void zend_std_call_getter(zval *object, zval *member, zval *retval TSRMLS it should return whether the call was successfull or not */ - SEPARATE_ARG_IF_REF(member); - ZVAL_UNDEF(retval); zend_call_method_with_1_params(object, ce, &ce->__get, ZEND_GET_FUNC_NAME, retval, member); zval_ptr_dtor(member); @@ -207,7 +205,6 @@ static int zend_std_call_setter(zval *object, zval *member, zval *value TSRMLS_D it should return whether the call was successfull or not */ - ZVAL_UNDEF(&retval); zend_call_method_with_2_params(object, ce, &ce->__set, ZEND_SET_FUNC_NAME, &retval, member, value); zval_ptr_dtor(member); @@ -251,7 +248,6 @@ static void zend_std_call_issetter(zval *object, zval *member, zval *retval TSRM SEPARATE_ARG_IF_REF(member); - ZVAL_UNDEF(retval); zend_call_method_with_1_params(object, ce, &ce->__isset, ZEND_ISSET_FUNC_NAME, retval, member); zval_ptr_dtor(member); @@ -923,7 +919,6 @@ ZEND_API void zend_std_call_user_call(INTERNAL_FUNCTION_PARAMETERS) /* {{{ */ array of method parameters */ - ZVAL_UNDEF(&method_result); zend_call_method_with_2_params(getThis(), ce, &ce->__call, ZEND_CALL_FUNC_NAME, &method_result, &method_name, &method_args); if (Z_TYPE(method_result) != IS_UNDEF) { @@ -1141,7 +1136,6 @@ ZEND_API void zend_std_callstatic_user_call(INTERNAL_FUNCTION_PARAMETERS) /* {{{ method name array of method parameters */ - ZVAL_UNDEF(&method_result); zend_call_method_with_2_params(NULL, ce, &ce->__callstatic, ZEND_CALLSTATIC_FUNC_NAME, &method_result, &method_name, &method_args); if (Z_TYPE(method_result) != IS_UNDEF) { @@ -1479,7 +1473,6 @@ found: /* have issetter - try with it! */ ZVAL_COPY(&tmp_object, object); (*guard) |= IN_ISSET; /* prevent circular getting */ - ZVAL_UNDEF(&rv); zend_std_call_issetter(&tmp_object, member, &rv TSRMLS_CC); if (Z_TYPE(rv) != IS_UNDEF) { result = zend_is_true(&rv TSRMLS_CC); @@ -1487,7 +1480,6 @@ found: if (has_set_exists && result) { if (EXPECTED(!EG(exception)) && zobj->ce->__get && !((*guard) & IN_GET)) { (*guard) |= IN_GET; - ZVAL_UNDEF(&rv); zend_std_call_getter(&tmp_object, member, &rv TSRMLS_CC); (*guard) &= ~IN_GET; if (Z_TYPE(rv) != IS_UNDEF) { @@ -1544,7 +1536,6 @@ ZEND_API int zend_std_cast_object_tostring(zval *readobj, zval *writeobj, int ty switch (type) { case IS_STRING: - ZVAL_UNDEF(&retval); ce = Z_OBJCE_P(readobj); if (ce->__tostring && (zend_call_method_with_0_params(readobj, ce, &ce->__tostring, "__tostring", &retval) || EG(exception))) { |