summaryrefslogtreecommitdiff
path: root/Zend/zend_variables.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_variables.c')
-rw-r--r--Zend/zend_variables.c5
1 files changed, 1 insertions, 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);