-fix macro parameter passing in HTTP_LOG_WRITE
authorMichael Wallner <mike@php.net>
Fri, 26 Aug 2005 07:31:06 +0000 (07:31 +0000)
committerMichael Wallner <mike@php.net>
Fri, 26 Aug 2005 07:31:06 +0000 (07:31 +0000)
http_api.c

index 8246d5907a4e0022af76e1a338fdd944c94f1c34..e12e1eb80228ffe24f309337cb66a051012b49c8 100644 (file)
@@ -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); \