]> granicus.if.org Git - php/commitdiff
- Fix #31185
authorMarcus Boerger <helly@php.net>
Sat, 19 Mar 2005 15:06:39 +0000 (15:06 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 19 Mar 2005 15:06:39 +0000 (15:06 +0000)
Zend/zend_object_handlers.c

index ca2de17f2fcb6878a8482f6208cfb9909a5355fb..43f9d472e858355d9bfa6736c3ceecf38aad5bfd 100644 (file)
@@ -476,13 +476,11 @@ static void zend_std_unset_property(zval *object, zval *member TSRMLS_DC)
 static void zend_std_unset_dimension(zval *object, zval *offset TSRMLS_DC)
 {
        zend_class_entry *ce = Z_OBJCE_P(object);
-       zval *retval;
        
        if (instanceof_function_ex(ce, zend_ce_arrayaccess, 1 TSRMLS_CC)) {
                SEPARATE_ARG_IF_REF(offset);
-               zend_call_method_with_1_params(&object, ce, NULL, "offsetunset", &retval, offset);
+               zend_call_method_with_1_params(&object, ce, NULL, "offsetunset", NULL, offset);
                zval_ptr_dtor(&offset);
-               zval_ptr_dtor(&retval);
        } else {
                zend_error(E_ERROR, "Cannot use object of type %s as array", ce->name);
        }