X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_api.c;h=3969b82fd156d50ca69037893b199964713adbf7;hb=389e280e0bba312ff5ca9981801cc842dad26ec2;hp=3f4b7a66072b9af63905daee897931fffcc86b49;hpb=ab7ffb9d04418a394dec4604f88a3aa5d94b9a08;p=m6w6%2Fext-http diff --git a/http_api.c b/http_api.c index 3f4b7a6..3969b82 100644 --- a/http_api.c +++ b/http_api.c @@ -12,13 +12,9 @@ /* $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#define HTTP_WANT_SAPI #include "php_http.h" -#include "SAPI.h" #include "php_output.h" #include "ext/standard/url.h" @@ -208,7 +204,7 @@ void _http_log_ex(char *file, const char *ident, const char *message TSRMLS_DC) struct tm nowtm; char datetime[20] = {0}; - time(&now); + now = HTTP_GET_REQUEST_TIME(); strftime(datetime, sizeof(datetime), "%Y-%m-%d %H:%M:%S", php_localtime_r(&now, &nowtm)); #define HTTP_LOG_WRITE(file, type, msg) \