]> granicus.if.org Git - php/commitdiff
- Typos, CS, etc.
authorfoobar <sniper@php.net>
Sat, 6 Sep 2003 13:07:47 +0000 (13:07 +0000)
committerfoobar <sniper@php.net>
Sat, 6 Sep 2003 13:07:47 +0000 (13:07 +0000)
# Sara, add the missing description to the proto..

ext/standard/http.c

index ba0afda2454df3004ea6633bc181884a9959d056..d7a7d8c94ebb528778c8b93f2e35888a3f99384c 100644 (file)
@@ -40,7 +40,7 @@ PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr,
        }
 
        if (ht->nApplyCount > 0) {
-               /* Prevent Recuriosn */
+               /* Prevent recursion */
                return SUCCESS;
        }
 
@@ -50,9 +50,10 @@ PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr,
        }
        arg_sep_len = strlen(arg_sep);
 
-       for(zend_hash_internal_pointer_reset(ht);
+       for (zend_hash_internal_pointer_reset(ht);
                (key_type = zend_hash_get_current_key_ex(ht, &key, &key_len, &idx, 0, NULL)) != HASH_KEY_NON_EXISTANT;
-               zend_hash_move_forward(ht)) {
+               zend_hash_move_forward(ht)
+       ) {
                if (key_len && key[key_len-1] == '\0') {
                        /* We don't want that trailing NULL */
                        key_len -= 1;
@@ -168,6 +169,8 @@ PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr,
 }
 /* }}} */
 
+/* {{{ proto string http_build_query(mixed formdata [, string prefix])
+   */
 PHP_FUNCTION(http_build_query)
 {
        zval *formdata;