]> granicus.if.org Git - php/commitdiff
- fix windows builds, error with declarations
authorPierre Joye <pajoye@php.net>
Fri, 19 May 2006 01:45:22 +0000 (01:45 +0000)
committerPierre Joye <pajoye@php.net>
Fri, 19 May 2006 01:45:22 +0000 (01:45 +0000)
ext/filter/filter.c

index 7e8e6390ae66512941302335881f552744a9dc08..96a5a2d666f147ad4f29018a5f298fd5a892bda5 100644 (file)
@@ -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)) {