From: Michael Wallner Date: Sun, 6 Nov 2011 15:31:25 +0000 (+0000) Subject: new cookie list API X-Git-Tag: DEV_2-before-client~82 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=0e1dcdcd221942f66fe01fdaf1f79f8ef55a527a;p=m6w6%2Fext-http new cookie list API --- diff --git a/php_http_request.c b/php_http_request.c index 9d4819d..d65ea5c 100644 --- a/php_http_request.c +++ b/php_http_request.c @@ -1116,7 +1116,7 @@ PHP_METHOD(HttpRequest, getResponseCookies) FOREACH_VAL(pos2, *header, single_header) { zval *data = php_http_ztyp(IS_STRING, *single_header); - if ((list = php_http_cookie_list_parse(NULL, Z_STRVAL_P(data), flags, allowed_extras TSRMLS_CC))) { + if ((list = php_http_cookie_list_parse(NULL, Z_STRVAL_P(data), Z_STRLEN_P(data), flags, allowed_extras TSRMLS_CC))) { zval *cookie; MAKE_STD_ZVAL(cookie); @@ -1127,7 +1127,7 @@ PHP_METHOD(HttpRequest, getResponseCookies) } } else { zval *data = php_http_ztyp(IS_STRING, *header); - if ((list = php_http_cookie_list_parse(NULL, Z_STRVAL_P(data), flags, allowed_extras TSRMLS_CC))) { + if ((list = php_http_cookie_list_parse(NULL, Z_STRVAL_P(data), Z_STRLEN_P(data), flags, allowed_extras TSRMLS_CC))) { zval *cookie; MAKE_STD_ZVAL(cookie);