]> granicus.if.org Git - php/commitdiff
no need to destroy the zval here
authorAntony Dovgal <tony2001@php.net>
Thu, 11 May 2006 22:41:37 +0000 (22:41 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 11 May 2006 22:41:37 +0000 (22:41 +0000)
Zend/zend.c

index b1a94ce2abeb6d9b41e81a2cfd50bb1e2dc6cd56..cf54baaa583b718e86fdb9253023da7bae04b5f4 100644 (file)
@@ -248,7 +248,6 @@ ZEND_API void zend_make_printable_zval(zval *expr, zval *expr_copy, int *use_cop
                                        }
                                }
                                zend_error(EG(exception) ? E_ERROR : E_RECOVERABLE_ERROR, "Object of class %s could not be converted to string", Z_OBJCE_P(expr)->name);
-                               zval_dtor(expr_copy);
                                expr_copy->value.str.len = 0;
                                expr_copy->value.str.val = STR_EMPTY_ALLOC();
                        }