@@ -2986,15 +2986,10 @@ static void php_splice(HashTable *in_hash, zend_long offset, zend_long length, H
2986
2986
Z_TRY_ADDREF_P (entry );
2987
2987
if (p -> key == NULL ) {
2988
2988
zend_hash_next_index_insert_new (removed , entry );
2989
- zend_hash_del_bucket (in_hash , p );
2990
2989
} else {
2991
2990
zend_hash_add_new (removed , p -> key , entry );
2992
- if (in_hash == & EG (symbol_table )) {
2993
- zend_delete_global_variable (p -> key );
2994
- } else {
2995
- zend_hash_del_bucket (in_hash , p );
2996
- }
2997
2991
}
2992
+ zend_hash_del_bucket (in_hash , p );
2998
2993
}
2999
2994
} else { /* otherwise just skip those entries */
3000
2995
int pos2 = pos ;
@@ -3003,11 +2998,7 @@ static void php_splice(HashTable *in_hash, zend_long offset, zend_long length, H
3003
2998
p = in_hash -> arData + idx ;
3004
2999
if (Z_TYPE (p -> val ) == IS_UNDEF ) continue ;
3005
3000
pos2 ++ ;
3006
- if (p -> key && in_hash == & EG (symbol_table )) {
3007
- zend_delete_global_variable (p -> key );
3008
- } else {
3009
- zend_hash_del_bucket (in_hash , p );
3010
- }
3001
+ zend_hash_del_bucket (in_hash , p );
3011
3002
}
3012
3003
}
3013
3004
iter_pos = zend_hash_iterators_lower_pos (in_hash , iter_pos );
@@ -4444,11 +4435,7 @@ PHP_FUNCTION(array_unique)
4444
4435
if (p -> key == NULL ) {
4445
4436
zend_hash_index_del (Z_ARRVAL_P (return_value ), p -> h );
4446
4437
} else {
4447
- if (Z_ARRVAL_P (return_value ) == & EG (symbol_table )) {
4448
- zend_delete_global_variable (p -> key );
4449
- } else {
4450
- zend_hash_del (Z_ARRVAL_P (return_value ), p -> key );
4451
- }
4438
+ zend_hash_del (Z_ARRVAL_P (return_value ), p -> key );
4452
4439
}
4453
4440
}
4454
4441
}
0 commit comments