From: Andi Gutmans Date: Tue, 17 Oct 2000 18:25:10 +0000 (+0000) Subject: - Fix copy&paste bug X-Git-Tag: php-4.0.4RC3~645 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=610edbc7ded8562738befadc7dec14c98e72b791;p=php - Fix copy&paste bug --- diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 45d9619b8e..ef46ba80ab 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -938,7 +938,7 @@ ZEND_FUNCTION(get_defined_vars) zend_hash_apply_with_arguments(&EG(symbol_table), (apply_func_args_t)copy_variable_name, 1, globals); zend_hash_apply_with_arguments(EG(active_symbol_table), (apply_func_args_t)copy_variable_name, 1, current); - if (zend_hash_add(return_value->value.ht, "globals", sizeof("globals"), (void **)¤t, sizeof(zval *), NULL) == FAILURE) { + if (zend_hash_add(return_value->value.ht, "globals", sizeof("globals"), (void **)&globals, sizeof(zval *), NULL) == FAILURE) { zend_error(E_WARNING, "Cannot add gobal variables to return value from get_defined_vars()"); RETURN_FALSE; }