summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2012-02-08 14:07:27 +0000
committerXinchen Hui <laruence@php.net>2012-02-08 14:07:27 +0000
commit3f23b111515f50e1a273561b7400c33c9f268c0a (patch)
tree09f38c70e0f2bbf58d3e7f13b76e3eb49fc91618 /main
parentce1a1f5f491ea149e0e67f07993a5ce374415238 (diff)
downloadphp-git-3f23b111515f50e1a273561b7400c33c9f268c0a.tar.gz
Fixed bug #61000 (Exceeding max nesting level doesn't delete numerical vars).
Diffstat (limited to 'main')
-rw-r--r--main/php_variables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index 32588d5f8f..9c54baf49c 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -138,10 +138,10 @@ PHPAPI void php_register_variable_ex(char *var_name, zval *val, zval *track_vars
if (track_vars_array) {
ht = Z_ARRVAL_P(track_vars_array);
- zend_hash_del(ht, var, var_len + 1);
+ zend_symtable_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_symtable_del(ht, var, var_len + 1);
}
zval_dtor(val);