1
0
mirror of https://github.com/php/php-src.git synced 2026-04-10 01:23:53 +02:00

- Fix copy&paste bug

This commit is contained in:
Andi Gutmans
2000-10-17 18:25:10 +00:00
parent 9e5ef06ceb
commit 610edbc7de

View File

@@ -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 **)&current, 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;
}