diff options
author | Nuno Lopes <nlopess@php.net> | 2007-09-29 11:18:42 +0000 |
---|---|---|
committer | Nuno Lopes <nlopess@php.net> | 2007-09-29 11:18:42 +0000 |
commit | e029a0ee59eb6857517e56a357c3f3f269f546ea (patch) | |
tree | 0f6eceba4d11f2db4fa36299db037771cbc99f5a /main/php_variables.c | |
parent | ae14f6ba78e039bf7a90509e526b0867cbf3ce4a (diff) | |
download | php-git-e029a0ee59eb6857517e56a357c3f3f269f546ea.tar.gz |
fix a few compiler warnings (mostly use of unitialized values)
Diffstat (limited to 'main/php_variables.c')
-rw-r--r-- | main/php_variables.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/php_variables.c b/main/php_variables.c index ef6aa36693..bf52dae0e8 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -130,11 +130,12 @@ PHPAPI void php_register_variable_ex(char *var, zval *val, zval *track_vars_arra if (track_vars_array) { ht = Z_ARRVAL_P(track_vars_array); + zend_hash_del(ht, var, var_len + 1); } else if (PG(register_globals)) { ht = EG(active_symbol_table); + zend_hash_del(ht, var, var_len + 1); } - zend_hash_del(ht, var, var_len + 1); zval_dtor(val); /* do not output the error message to the screen, |