X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http.h;h=08b2a4db4009ae7b908fa5bf4552c48e13ee8420;hp=c45c319dee9b792c911bb1cd00b7283d4fcfc38e;hb=46fc12676a53668d55fe6d02d44210e2eaf4b6b5;hpb=50343c32560e80c491911b107fab8217a35850eb diff --git a/php_http.h b/php_http.h index c45c319..08b2a4d 100644 --- a/php_http.h +++ b/php_http.h @@ -89,6 +89,7 @@ ZEND_BEGIN_MODULE_GLOBALS(http) struct _http_globals_log { char *cache; char *redirect; + char *not_found; char *allowed_methods; char *composite; } log; @@ -110,6 +111,7 @@ ZEND_BEGIN_MODULE_GLOBALS(http) long start_flags; void *stream; } inflate; + zend_bool not_found_404; } send; struct _http_globals_request { @@ -142,6 +144,8 @@ ZEND_EXTERN_MODULE_GLOBALS(http); # define HTTP_G (&http_globals) #endif +#define HTTP_HAVE_EXT(EXT) ((defined(HAVE_##EXT) || defined(HAVE_PHP_##EXT)) && (HTTP_SHARED_DEPS || !defined(COMPILE_DL_##EXT))) + PHP_FUNCTION(http_test); PHP_FUNCTION(http_date); PHP_FUNCTION(http_build_url);