]> granicus.if.org Git - php/commitdiff
- Don't touch refcount/is_ref
authorMarcus Boerger <helly@php.net>
Fri, 11 Mar 2005 00:44:34 +0000 (00:44 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 11 Mar 2005 00:44:34 +0000 (00:44 +0000)
Zend/zend_object_handlers.c
ext/spl/spl_array.c

index b70c8f5ae9672771b5e631d93fe70f9921597c2a..ca2de17f2fcb6878a8482f6208cfb9909a5355fb 100644 (file)
@@ -518,9 +518,7 @@ ZEND_API void zend_std_call_user_call(INTERNAL_FUNCTION_PARAMETERS)
        zend_call_method_with_2_params(&this_ptr, ce, &ce->__call, ZEND_CALL_FUNC_NAME, &method_result_ptr, method_name_ptr, method_args_ptr);
 
        if (method_result_ptr) {
-               *return_value = *method_result_ptr;
-               zval_copy_ctor(return_value);
-               zval_ptr_dtor(&method_result_ptr);
+               RETVAL_ZVAL(method_result_ptr, 0, 1);
        }
        
        /* now destruct all auxiliaries */
index 311e893ba3d47e978e7b2e4758badf0343651b91..90b12b6967374355a4e911d1f4c872dbc237b201 100755 (executable)
@@ -893,8 +893,7 @@ SPL_METHOD(Array, current)
        if (zend_hash_get_current_data_ex(aht, (void **) &entry, &intern->pos) == FAILURE) {
                return;
        }
-       *return_value = **entry;
-       zval_copy_ctor(return_value);
+       RETVAL_ZVAL(*entry, 1, 0);
 }
 /* }}} */