X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_api.h;h=34a01597587f25aad7ec29de69c2de536ce28833;hp=53198e1b53e4799d843a716acb9e04664df51149;hb=7dedd1935ab8400dfbd49fe63c83b74b0d0b68e6;hpb=21c1913c745be79bb5551b4bb67ca5a9e54c221b diff --git a/php_http_api.h b/php_http_api.h index 53198e1..34a0159 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -48,6 +48,9 @@ typedef enum { /* buffer size */ #define HTTP_BUF_SIZE 2097152 +/* server vars shorthand */ +#define HTTP_SERVER_VARS Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]) + /* {{{ HAVE_CURL */ #if defined(HAVE_CURL) && HAVE_CURL @@ -108,7 +111,7 @@ PHP_HTTP_API int _http_modified_match(const char *entry, const time_t t TSRMLS_D PHP_HTTP_API int _http_etag_match(const char *entry, const char *etag TSRMLS_DC); #define http_send_last_modified(t) _http_send_last_modified((t) TSRMLS_CC) -PHP_HTTP_API STATUS _http_send_last_modified(const int t TSRMLS_DC); +PHP_HTTP_API STATUS _http_send_last_modified(const time_t t TSRMLS_DC); #define http_send_etag(e, l) _http_send_etag((e), (l) TSRMLS_CC) PHP_HTTP_API STATUS _http_send_etag(const char *etag, const int etag_len TSRMLS_DC); @@ -181,3 +184,4 @@ PHP_HTTP_API void _http_auth_header(const char *type, const char *realm TSRMLS_D * vim600: noet sw=4 ts=4 fdm=marker * vim<600: noet sw=4 ts=4 */ +