From: Pierre Joye Date: Fri, 19 May 2006 01:45:22 +0000 (+0000) Subject: - fix windows builds, error with declarations X-Git-Tag: BEFORE_NEW_OUTPUT_API~165 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=deec9a6ce136723a49e59b93937513d91025ba6b;p=php - fix windows builds, error with declarations --- 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)) {