projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- fix leak in HttpResponse::setData()
[m6w6/ext-http]
/
http_request_object.c
diff --git
a/http_request_object.c
b/http_request_object.c
index 81c051e2d37f37f03fde588e708e6e1367a7900c..8e0b7ce8bb8726c34add518cdb54f16ab29d45d5 100644
(file)
--- a/
http_request_object.c
+++ b/
http_request_object.c
@@
-798,7
+798,7
@@
PHP_METHOD(HttpRequest, __construct)
zval *options = NULL;
SET_EH_THROW_HTTP();
zval *options = NULL;
SET_EH_THROW_HTTP();
- if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sla", &URL, &URL_len, &meth, &options)) {
+ if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sla
!
", &URL, &URL_len, &meth, &options)) {
if (URL) {
UPD_STRL(url, URL, URL_len);
}
if (URL) {
UPD_STRL(url, URL, URL_len);
}
@@
-1749,7
+1749,7
@@
PHP_METHOD(HttpRequest, getResponseCookies)
long flags = 0;
zval *allowed_extras_array = NULL;
long flags = 0;
zval *allowed_extras_array = NULL;
- if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|la", &flags, &allowed_extras_array)) {
+ if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|la
!
", &flags, &allowed_extras_array)) {
int i = 0;
ulong idx = 0;
char *key = NULL, **allowed_extras = NULL;
int i = 0;
ulong idx = 0;
char *key = NULL, **allowed_extras = NULL;