From eadaf3eb7a24a7475cca68c350210fc9f74226c0 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Sat, 12 May 2001 13:55:49 +0000 Subject: [PATCH] - Remove check for ht == NULL in copy_ctor. If ht is NULL at this point then we are better off crashing and fixing the bug that caused it. --- Zend/zend_variables.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c index fb7c1a1642..d551541a5a 100644 --- a/Zend/zend_variables.c +++ b/Zend/zend_variables.c @@ -122,10 +122,7 @@ ZEND_API int _zval_copy_ctor(zval *zvalue ZEND_FILE_LINE_DC) HashTable *original_ht = zvalue->value.ht; ELS_FETCH(); - if (!zvalue->value.ht) { - var_reset(zvalue); - return FAILURE; - } else if (zvalue->value.ht==&EG(symbol_table)) { + if (zvalue->value.ht == &EG(symbol_table)) { return SUCCESS; /* do nothing */ } ALLOC_HASHTABLE_REL(zvalue->value.ht); -- 2.50.1