- create a request body only if there's something to feed into http_request_body_fill()
[m6w6/ext-http] / http_api.c
index 6046052f1be597943442acb832b0109d00ea4b62..edd80aeec36cc3087b3facd79114da9cc7af7cd0 100644 (file)
@@ -206,9 +206,7 @@ void _http_log_ex(char *file, const char *ident, const char *message TSRMLS_DC)
 {
        time_t now;
        struct tm nowtm;
-       char datetime[128];
-       
-       HTTP_CHECK_OPEN_BASEDIR(file, return);
+       char datetime[20] = {0};
        
        time(&now);
        strftime(datetime, sizeof(datetime), "%Y-%m-%d %H:%M:%S", php_localtime_r(&now, &nowtm));