Browse Source

- Typos, CS, etc.

# Sara, add the missing description to the proto..
PEAR_1_4DEV
foobar 23 years ago
parent
commit
d00a14339c
  1. 9
      ext/standard/http.c

9
ext/standard/http.c

@ -40,7 +40,7 @@ PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr,
} }
if (ht->nApplyCount > 0) { if (ht->nApplyCount > 0) {
/* Prevent Recuriosn */
/* Prevent recursion */
return SUCCESS; return SUCCESS;
} }
@ -50,9 +50,10 @@ PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr,
} }
arg_sep_len = strlen(arg_sep); 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; (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') { if (key_len && key[key_len-1] == '\0') {
/* We don't want that trailing NULL */ /* We don't want that trailing NULL */
key_len -= 1; 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) PHP_FUNCTION(http_build_query)
{ {
zval *formdata; zval *formdata;

Loading…
Cancel
Save