X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_api.c;h=9943cd8f49cf55a516ff9bb3f49edd16b017bcef;hp=c5c63f95cd129ac8a72d8fc310d413971e27c0fd;hb=100b5ff381fe93e7ac4d7b0ea68f9b7256615e68;hpb=3e637b9941c071b4fef38a7cde0cd6e2357ee4f0 diff --git a/http_api.c b/http_api.c index c5c63f9..9943cd8 100644 --- a/http_api.c +++ b/http_api.c @@ -195,7 +195,7 @@ void _http_log_ex(char *file, const char *ident, const char *message TSRMLS_DC) strftime(datetime, sizeof(datetime), "%Y-%m-%d %H:%M:%S", php_localtime_r(&now, &nowtm)); #define HTTP_LOG_WRITE(file, type, msg) \ - if (file && strlen(file)) { \ + if (file && *file) { \ php_stream *log = php_stream_open_wrapper(file, "ab", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL); \ \ if (log) { \