X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http.h;h=3f11b66b47ee94dba764de3f91c935df30d759f1;hp=d945565eed8608dd2cab469bbff53f7d13c9e798;hb=c8dff7011092296f9fcc12e68ad8eef18b19cdf4;hpb=562b92bca8c6c98f2358b429d8113861e49877a2 diff --git a/php_http.h b/php_http.h index d945565..3f11b66 100644 --- a/php_http.h +++ b/php_http.h @@ -15,7 +15,7 @@ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H -#define PHP_EXT_HTTP_VERSION "1.0.0RC4-dev" +#define PHP_EXT_HTTP_VERSION "1.1.0dev" #ifdef HAVE_CONFIG_H # include "config.h" @@ -26,16 +26,13 @@ #endif #include "php.h" +#include "missing.h" #include "php_http_std_defs.h" #include "phpstr/phpstr.h" -#include "missing.h" #ifdef HTTP_WANT_SAPI # if PHP_API_VERSION > 20041225 # define HTTP_HAVE_SAPI_RTIME -# define HTTP_GET_REQUEST_TIME() sapi_get_request_time(TSRMLS_C) -# else -# define HTTP_GET_REQUEST_TIME() HTTP_G->request_time # endif # include "SAPI.h" #endif @@ -91,6 +88,7 @@ ZEND_BEGIN_MODULE_GLOBALS(http) struct _http_globals_log { char *cache; char *redirect; + char *not_found; char *allowed_methods; char *composite; } log; @@ -112,21 +110,21 @@ ZEND_BEGIN_MODULE_GLOBALS(http) long start_flags; void *stream; } inflate; + zend_bool not_found_404; } send; struct _http_globals_request { + time_t time; struct _http_globals_request_methods { char *allowed; struct _http_globals_request_methods_custom { + char *ini; int count; void *entries; } custom; } methods; } request; -#ifndef HTTP_HAVE_SAPI_RTIME - time_t request_time; -#endif #ifdef ZEND_ENGINE_2 zend_bool only_exceptions; #endif @@ -145,6 +143,22 @@ ZEND_EXTERN_MODULE_GLOBALS(http); # define HTTP_G (&http_globals) #endif +#if defined(HAVE_ICONV) && (HTTP_SHARED_DEPS || !defined(COMPILE_DL_ICONV)) +# define HTTP_HAVE_ICONV +#endif + +#if defined(HAVE_PHP_SESSION) && (HTTP_SHARED_DEPS || !defined(COMPILE_DL_SESSION)) +# define HTTP_HAVE_SESSION +#endif + +#if defined(HAVE_HASH_EXT) && (HTTP_SHARED_DEPS || !defined(COMPILE_DL_HASH) && defined(HTTP_HAVE_PHP_HASH_H)) +# define HTTP_HAVE_HASH +#endif + +#if defined(HAVE_SPL) +# define HTTP_HAVE_SPL +#endif + PHP_FUNCTION(http_test); PHP_FUNCTION(http_date); PHP_FUNCTION(http_build_url);