X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=fe5d66e8f8b14e31a6d74c25cd022fbc5de0352b;hp=930e179a13a572c9acfbb88d8aaa3f029bf8102b;hb=107576b154825ebac44f2cc08d97565a5349eca8;hpb=15eb1d1f8f77ed2481169c792715c11656182795 diff --git a/http.c b/http.c index 930e179..fe5d66e 100644 --- a/http.c +++ b/http.c @@ -308,9 +308,16 @@ zend_function_entry http_request_class_methods[] = { PHP_ME(HttpRequest, setOptions, NULL, ZEND_ACC_PUBLIC) PHP_ME(HttpRequest, getOptions, NULL, ZEND_ACC_PUBLIC) PHP_ME(HttpRequest, unsetOptions, NULL, ZEND_ACC_PUBLIC) + PHP_ME(HttpRequest, setSslOptions, NULL, ZEND_ACC_PUBLIC) + PHP_ME(HttpRequest, getSslOptions, NULL, ZEND_ACC_PUBLIC) + PHP_ME(HttpRequest, unsetSslOptions, NULL, ZEND_ACC_PUBLIC) - PHP_ME(HttpRequest, addHeader, NULL, ZEND_ACC_PUBLIC) - PHP_ME(HttpRequest, addCookie, NULL, ZEND_ACC_PUBLIC) + PHP_ME(HttpRequest, addHeaders, NULL, ZEND_ACC_PUBLIC) + PHP_ME(HttpRequest, getHeaders, NULL, ZEND_ACC_PUBLIC) + PHP_ME(HttpRequest, unsetHeaders, NULL, ZEND_ACC_PUBLIC) + PHP_ME(HttpRequest, addCookies, NULL, ZEND_ACC_PUBLIC) + PHP_ME(HttpRequest, getCookies, NULL, ZEND_ACC_PUBLIC) + PHP_ME(HttpRequest, unsetCookies, NULL, ZEND_ACC_PUBLIC) PHP_ME(HttpRequest, setMethod, NULL, ZEND_ACC_PUBLIC) PHP_ME(HttpRequest, getMethod, NULL, ZEND_ACC_PUBLIC) @@ -339,6 +346,7 @@ zend_function_entry http_request_class_methods[] = { PHP_ME(HttpRequest, getResponseData, NULL, ZEND_ACC_PUBLIC) PHP_ME(HttpRequest, getResponseHeader, NULL, ZEND_ACC_PUBLIC) + PHP_ME(HttpRequest, getResponseCookie, NULL, ZEND_ACC_PUBLIC) PHP_ME(HttpRequest, getResponseCode, NULL, ZEND_ACC_PUBLIC) PHP_ME(HttpRequest, getResponseBody, NULL, ZEND_ACC_PUBLIC) PHP_ME(HttpRequest, getResponseInfo, NULL, ZEND_ACC_PUBLIC) @@ -485,7 +493,7 @@ PHP_MSHUTDOWN_FUNCTION(http) { UNREGISTER_INI_ENTRIES(); #ifdef HTTP_HAVE_CURL - //phpstr_free(&HTTP_G(curlbuf)); + phpstr_dtor(&HTTP_G(curlbuf)); curl_global_cleanup(); #endif return SUCCESS; @@ -518,7 +526,7 @@ PHP_RSHUTDOWN_FUNCTION(http) } #ifdef HTTP_HAVE_CURL - //phpstr_free(&HTTP_G(curlbuf)); + phpstr_dtor(&HTTP_G(curlbuf)); #endif return SUCCESS;