projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- add flag parameter to http_build_url(); slightly breaks parameter order
[m6w6/ext-http]
/
http_message_object.c
diff --git
a/http_message_object.c
b/http_message_object.c
index 475daf13bb1dc300910ba64d3a2ecbd518e72061..ae4254a2621810a73074912f3c62d0abde9ff237 100644
(file)
--- a/
http_message_object.c
+++ b/
http_message_object.c
@@
-1085,7
+1085,7
@@
PHP_METHOD(HttpMessage, toMessageTypeObject)
memset(&hurl, 0, sizeof(php_url));
hurl.host = host ? Z_STRVAL_P(host) : NULL;
memset(&hurl, 0, sizeof(php_url));
hurl.host = host ? Z_STRVAL_P(host) : NULL;
- http_build_url(purl, &hurl, NULL, &url, NULL);
+ http_build_url(
HTTP_URL_REPLACE,
purl, &hurl, NULL, &url, NULL);
php_url_free(purl);
add_assoc_string(array, "url", url, 0);
php_url_free(purl);
add_assoc_string(array, "url", url, 0);