X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http.h;h=c4fc38050873776aad9c82ded570cd42c8fd410f;hb=fca3f6dec1f2842792cd399ad830c2e1746b9cf6;hp=6251c98f6aad1c4189cbafc9d8f84c297050ee26;hpb=51f68d1c8028144d2db1e415fdf14afb1442649e;p=m6w6%2Fext-http diff --git a/php_http.h b/php_http.h index 6251c98..c4fc380 100644 --- a/php_http.h +++ b/php_http.h @@ -39,19 +39,6 @@ extern zend_module_entry http_module_entry; #else #ifdef HTTP_HAVE_CURL -typedef struct { - struct { - char *data; - size_t used; - size_t free; - } body; - struct { - char *data; - size_t used; - size_t free; - } hdrs; -} http_curlbuf; - typedef enum { HTTP_GET, HTTP_HEAD, @@ -110,8 +97,8 @@ PHP_METHOD(HTTPi_Response, send); #ifdef HTTP_HAVE_CURL -PHP_METHOD(HTTPi_Request, __construct);/* -PHP_METHOD(HTTPi_Request, __destruct);*/ +PHP_METHOD(HTTPi_Request, __construct); +PHP_METHOD(HTTPi_Request, __destruct); PHP_METHOD(HTTPi_Request, setOptions); PHP_METHOD(HTTPi_Request, getOptions); PHP_METHOD(HTTPi_Request, setMethod); @@ -185,7 +172,18 @@ ZEND_BEGIN_MODULE_GLOBALS(http) time_t lmod; char *allowed_methods; #ifdef HTTP_HAVE_CURL - http_curlbuf curlbuf; + struct { + struct { + char *data; + size_t used; + size_t free; + } body; + struct { + char *data; + size_t used; + size_t free; + } hdrs; + } curlbuf; #endif ZEND_END_MODULE_GLOBALS(http)