projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
more typos
[m6w6/ext-http]
/
http_url_api.c
diff --git
a/http_url_api.c
b/http_url_api.c
index f67d91a3e40a1a66773f3f9c2095e642a3e008f6..c1a4f81b0535125af32c8c1647dde675905cc5d8 100644
(file)
--- a/
http_url_api.c
+++ b/
http_url_api.c
@@
-175,6
+175,7
@@
PHP_HTTP_API void _http_build_url(int flags, const php_url *old_url, const php_u
default:
#endif
case 80:
default:
#endif
case 80:
+ case 0:
url->scheme = estrndup("http", lenof("http"));
break;
url->scheme = estrndup("http", lenof("http"));
break;
@@
-445,7
+446,7
@@
PHP_HTTP_API STATUS _http_urlencode_hash_recursive(HashTable *ht, phpstr *str, c
return FAILURE;
}
} else {
return FAILURE;
}
} else {
- zval *val =
zval_copy
(IS_STRING, *data);
+ zval *val =
http_zsep
(IS_STRING, *data);
if (PHPSTR_LEN(str)) {
phpstr_append(str, arg_sep, arg_sep_len);
if (PHPSTR_LEN(str)) {
phpstr_append(str, arg_sep, arg_sep_len);
@@
-462,7
+463,7
@@
PHP_HTTP_API STATUS _http_urlencode_hash_recursive(HashTable *ht, phpstr *str, c
efree(encoded_val);
}
efree(encoded_val);
}
- zval_
free
(&val);
+ zval_
ptr_dtor
(&val);
}
phpstr_dtor(&new_prefix);
}
}
phpstr_dtor(&new_prefix);
}