projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
operate directly on the querystring of the request url
[m6w6/ext-http]
/
php_http_params.c
diff --git
a/php_http_params.c
b/php_http_params.c
index f3617527bc023896258f5c51b262b8948886586d..4b9844820542bbe9c53f0c92f354d2ece9edca7d 100644
(file)
--- a/
php_http_params.c
+++ b/
php_http_params.c
@@
-206,7
+206,13
@@
PHP_HTTP_API php_http_buffer_t *php_http_params_to_string(php_http_buffer_t *buf
php_http_buffer_appendf(buf, "%lu", key1.num);
}
php_http_buffer_appendf(buf, "%lu", key1.num);
}
- if (Z_TYPE_PP(zparam) == IS_ARRAY) {
+ if (Z_TYPE_PP(zparam) != IS_ARRAY) {
+ zval *tmp = php_http_ztyp(IS_STRING, *zparam);
+
+ php_http_buffer_append(buf, vss, vsl);
+ php_http_buffer_append(buf, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp));
+ zval_ptr_dtor(&tmp);
+ } else {
zval **zvalue, **zargs, **zarg;
/* got a value? */
zval **zvalue, **zargs, **zarg;
/* got a value? */