From 1000a86e5faa09d9297733c3c4811d76031df646 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sun, 4 Mar 2001 15:49:38 +0000 Subject: [PATCH] Fix phpinfo() bug that crept in --- ext/standard/info.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ext/standard/info.c b/ext/standard/info.c index 9d5fe50cb0..97e13d4b49 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -60,7 +60,7 @@ static int _display_module_info(zend_module_entry *module, void *arg) static void php_print_gpcse_array(char *name, uint name_length ELS_DC) { - zval **data, **tmp, *tmp2; + zval **data, **tmp, tmp2; char *string_key; ulong num_key; @@ -68,7 +68,6 @@ static void php_print_gpcse_array(char *name, uint name_length ELS_DC) && ((*data)->type==IS_ARRAY)) { zend_hash_internal_pointer_reset((*data)->value.ht); while (zend_hash_get_current_data((*data)->value.ht, (void **) &tmp) == SUCCESS) { - PUTS(""); PUTS(""); PUTS(name); @@ -87,11 +86,11 @@ static void php_print_gpcse_array(char *name, uint name_length ELS_DC) zend_print_zval_r(*tmp, 0); PUTS(""); } else if ((*tmp)->type != IS_STRING) { - tmp2 = *tmp; - zval_copy_ctor(tmp2); - convert_to_string(tmp2); - PUTS(tmp2->value.str.val); - zval_dtor(tmp2); + tmp2 = **tmp; + zval_copy_ctor(&tmp2); + convert_to_string(&tmp2); + PUTS(&tmp2.value.str.val); + zval_dtor(&tmp2); } else { PUTS((*tmp)->value.str.val); } -- 2.50.1