From: Michael Wallner Date: Fri, 26 Aug 2005 07:31:06 +0000 (+0000) Subject: -fix macro parameter passing in HTTP_LOG_WRITE X-Git-Tag: RELEASE_0_12_0~6 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=380294ada4fcbb7b60168d71655c49c27405647f;p=m6w6%2Fext-http -fix macro parameter passing in HTTP_LOG_WRITE --- diff --git a/http_api.c b/http_api.c index 8246d59..e12e1eb 100644 --- a/http_api.c +++ b/http_api.c @@ -206,8 +206,8 @@ STATUS _http_exit_ex(int status, char *header, char *body, zend_bool send_header HTTP_LOG_WRITE_EX(composite, type, header); #define HTTP_LOG_WRITE_EX(for, type, header) \ - if (HTTP_G(log).##for && strlen(HTTP_G(log).##for)) { \ - php_stream *log = php_stream_open_wrapper(HTTP_G(log).##for, "ab", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL); \ + if (HTTP_G(log).for && strlen(HTTP_G(log).for)) { \ + php_stream *log = php_stream_open_wrapper(HTTP_G(log).for, "ab", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL); \ \ if (log) { \ php_stream_printf(log TSRMLS_CC, "%s [%12s] %32s <%s>%s", datetime, type, header, SG(request_info).request_uri, PHP_EOL); \