projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- adjust ini entry names to those of the globals struct
[m6w6/ext-http]
/
http_functions.c
diff --git
a/http_functions.c
b/http_functions.c
index 807b0a527cb94ae2f3bfeff483bf066b6eb08d7c..e894b19ebe4ec892a94e3fb7fab5f0c1533c5b5b 100644
(file)
--- a/
http_functions.c
+++ b/
http_functions.c
@@
-1089,7
+1089,7
@@
PHP_FUNCTION(http_parse_cookie)
}
}
}
}
-/* {{{ proto object http_parse_params(string param)
+/* {{{ proto object http_parse_params(string param
[, int flags = HTTP_PARAMS_DEFAULT]
)
*
* Parse parameter list.
*/
*
* Parse parameter list.
*/
@@
-1098,14
+1098,15
@@
PHP_FUNCTION(http_parse_params)
char *param;
int param_len;
zval *params;
char *param;
int param_len;
zval *params;
+ long flags = HTTP_PARAMS_DEFAULT;
- if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s
", ¶m, ¶m_len
)) {
+ if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s
|l", ¶m, ¶m_len, &flags
)) {
RETURN_FALSE;
}
params = ecalloc(1, sizeof(zval));
array_init(params);
RETURN_FALSE;
}
params = ecalloc(1, sizeof(zval));
array_init(params);
- if (SUCCESS != http_parse_params(param, Z_ARRVAL_P(params))) {
+ if (SUCCESS != http_parse_params(param,
flags,
Z_ARRVAL_P(params))) {
zval_dtor(params);
FREE_ZVAL(params);
RETURN_FALSE;
zval_dtor(params);
FREE_ZVAL(params);
RETURN_FALSE;