From deec9a6ce136723a49e59b93937513d91025ba6b Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Fri, 19 May 2006 01:45:22 +0000 Subject: [PATCH] - fix windows builds, error with declarations --- ext/filter/filter.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ext/filter/filter.c b/ext/filter/filter.c index 7e8e6390ae..96a5a2d666 100644 --- a/ext/filter/filter.c +++ b/ext/filter/filter.c @@ -636,6 +636,8 @@ PHP_FUNCTION(input_get_args) HashTable *args_hash; HashPosition pos; + HashTable * g_hash; + long args_from = 0; long elm_count; char *key; @@ -678,12 +680,12 @@ PHP_FUNCTION(input_get_args) if (!array_ptr) { RETURN_FALSE; + } else { + g_hash = HASH_OF(array_ptr); + zend_hash_internal_pointer_reset_ex(g_hash, &pos); + array_init(return_value); } - HashTable * g_hash = HASH_OF(array_ptr); - zend_hash_internal_pointer_reset_ex(g_hash, &pos); - array_init(return_value); - for (zend_hash_internal_pointer_reset_ex(args_hash, &pos); zend_hash_get_current_data_ex(args_hash, (void **) &element, &pos) == SUCCESS; zend_hash_move_forward_ex(args_hash, &pos)) { -- 2.50.1