X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http.h;h=571be3789dabc5de00b77c579975f4f904e6e0ac;hp=3a53a5875495b7c24258f1fba84ed86e716aa521;hb=8cb7ee1e8d8093d21ad9120b342a7ce1effa3694;hpb=043ec07245d44b166d34bb3e391add5d5dbd3720 diff --git a/php_http.h b/php_http.h index 3a53a58..571be37 100644 --- a/php_http.h +++ b/php_http.h @@ -18,12 +18,13 @@ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H -#define HTTP_PEXT_VERSION "0.7.0" +#define HTTP_PEXT_VERSION "0.8.0-dev" /* make compile on Win32 */ #include "php_streams.h" #include "ext/standard/md5.h" #include "phpstr/phpstr.h" +#include "php_http_message_api.h" extern zend_module_entry http_module_entry; #define phpext_http_ptr &http_module_entry @@ -37,6 +38,11 @@ extern zend_module_entry http_module_entry; #ifdef ZEND_ENGINE_2 +typedef struct { + zend_object zo; + http_message *message; +} http_message_object; + typedef struct { zend_object zo; } http_response_object; @@ -88,6 +94,8 @@ PHP_METHOD(HttpUtil, postArray); PHP_METHOD(HttpUtil, authBasic); PHP_METHOD(HttpUtil, authBasicCallback); +PHP_METHOD(HttpMessage, __construct); +PHP_METHOD(HttpMessage, __destruct); PHP_METHOD(HttpResponse, __construct);/* PHP_METHOD(HttpResponse, __destruct);*/ @@ -206,6 +214,9 @@ ZEND_BEGIN_MODULE_GLOBALS(http) char *allowed_methods; #ifdef HTTP_HAVE_CURL phpstr curlbuf; +# if LIBCURL_VERSION_NUM < 0x070c00 + char curlerr[CURL_ERROR_SIZE + 1]; +# endif zend_llist to_free; #endif /* HTTP_HAVE_CURL */ ZEND_END_MODULE_GLOBALS(http)