X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http.h;h=58f191e35e88b743254756d5d279557f1d08bf14;hp=b0a0a149d5e74798854485fcb7c29d7ba1f82004;hb=26591cefa8d85dced14547a0fb621b9a289ef2de;hpb=59a1afd0b68f9028e98fe003d8673db1fcf45f1f diff --git a/php_http.h b/php_http.h index b0a0a14..58f191e 100644 --- a/php_http.h +++ b/php_http.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);