X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http.c;h=1d338647995718d39b9507eb3dfdca16de379ded;hb=3fcfaba41748c3fd452e84ba6da6ea2d91f28e5e;hp=9eb59b99e600625eb57946d109e65f6d699dd8aa;hpb=dbc4ec02cd319000b5c8589910047cfe6d5738be;p=m6w6%2Fext-http diff --git a/http.c b/http.c index 9eb59b9..1d33864 100644 --- a/http.c +++ b/http.c @@ -183,10 +183,12 @@ static void http_globals_init_once(zend_http_globals *G) #define http_globals_init(g) _http_globals_init((g) TSRMLS_CC) static inline void _http_globals_init(zend_http_globals *G TSRMLS_DC) { - G->send.buffer_size = HTTP_SENDBUF_SIZE; -#ifndef HTTP_HAVE_SAPI_RTIME - G->request_time = time(NULL); +#ifdef HTTP_HAVE_SAPI_RTIME + G->request.time = Z_LVAL_P(http_get_server_var("REQUEST_TIME")); +#else + G->request.time = time(NULL); #endif + G->send.buffer_size = HTTP_SENDBUF_SIZE; G->read_post_data = 0; }