projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- fixed a gotcha in http_chunked_decode (-size_t is always > 0)
[m6w6/ext-http]
/
http_url_api.c
diff --git
a/http_url_api.c
b/http_url_api.c
index e66781f65e07a32c25d46ece9cdcfd952deb01b1..ccee5b3bf7817a249371c0cedf787c0624d5c2af 100644
(file)
--- a/
http_url_api.c
+++ b/
http_url_api.c
@@
-197,12
+197,12
@@
PHP_HTTP_API STATUS _http_urlencode_hash_ex(HashTable *hash, zend_bool override_
}
if (SUCCESS != http_urlencode_hash_implementation(hash, qstr, arg_sep)) {
}
if (SUCCESS != http_urlencode_hash_implementation(hash, qstr, arg_sep)) {
- phpstr_free(qstr);
+ phpstr_free(
&
qstr);
return FAILURE;
}
phpstr_data(qstr, encoded_data, encoded_len);
return FAILURE;
}
phpstr_data(qstr, encoded_data, encoded_len);
- phpstr_free(qstr);
+ phpstr_free(
&
qstr);
return SUCCESS;
}
return SUCCESS;
}
@@
-218,7
+218,8
@@
PHP_HTTP_API STATUS _http_urlencode_hash_implementation_ex(
zval *type TSRMLS_DC)
{
char *key = NULL, *ekey, *newprefix, *p;
zval *type TSRMLS_DC)
{
char *key = NULL, *ekey, *newprefix, *p;
- int arg_sep_len, key_len, ekey_len, key_type, newprefix_len;
+ int arg_sep_len, ekey_len, key_type, newprefix_len;
+ uint key_len;
ulong idx;
zval **zdata = NULL, *copyzval;
ulong idx;
zval **zdata = NULL, *copyzval;