X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=521f2b5ce58b7a0f660063e8e0ef8b3ac5b45f54;hp=05f448f560008ddcf754c9b4c5088aca722b7ff0;hb=b3afcfc70bf06c062115f4994cc04fc8c6e4aa67;hpb=76d11ef7477a1caf622ac9823da6b2b098c9b86c diff --git a/http.c b/http.c index 05f448f..521f2b5 100644 --- a/http.c +++ b/http.c @@ -68,7 +68,6 @@ ZEND_GET_MODULE(http) /* {{{ http_functions[] */ zend_function_entry http_functions[] = { - PHP_FE(http_test, NULL) PHP_FE(http_date, NULL) PHP_FE(http_build_url, http_arg_pass_ref_4) PHP_FE(http_build_str, NULL) @@ -187,7 +186,7 @@ static void http_globals_init_once(zend_http_globals *G) static inline void _http_globals_init(zend_http_globals *G TSRMLS_DC) { #ifdef HTTP_HAVE_SAPI_RTIME - G->request.time = Z_LVAL_P(http_get_server_var("REQUEST_TIME")); + G->request.time = sapi_get_request_time(TSRMLS_C); #else G->request.time = time(NULL); #endif