X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http.h;h=793b21334371e0f1846deb92e482019f063036a5;hb=refs%2Ftags%2FRELEASE_0_21_0;hp=b0a0a149d5e74798854485fcb7c29d7ba1f82004;hpb=51c8190ce9a66048d750ba6bb7cd68ab99358ab8;p=m6w6%2Fext-http diff --git a/php_http.h b/php_http.h index b0a0a14..793b213 100644 --- a/php_http.h +++ b/php_http.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -15,7 +15,7 @@ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H -#define PHP_EXT_HTTP_VERSION "0.21.0dev" +#define PHP_EXT_HTTP_VERSION "0.21.0" #include "php.h" #include "php_http_std_defs.h" @@ -93,7 +93,10 @@ ZEND_BEGIN_MODULE_GLOBALS(http) struct _http_globals_request { struct _http_globals_request_methods { char *allowed; - HashTable custom; + struct { + int count; + void *entries; + } custom; } methods; } request; @@ -115,7 +118,7 @@ ZEND_EXTERN_MODULE_GLOBALS(http); # define HTTP_G(v) (http_globals.v) # define HTTP_GLOBALS (&http_globals) #endif -#define getGlobals(G) zend_http_globals *G = HTTP_GLOBALS; +#define getGlobals(G) zend_http_globals *G = HTTP_GLOBALS PHP_FUNCTION(http_test); PHP_FUNCTION(http_date);