projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
ab58ba3
)
-fix macro parameter passing in HTTP_LOG_WRITE
author
Michael Wallner
<mike@php.net>
Fri, 26 Aug 2005 07:31:06 +0000
(07:31 +0000)
committer
Michael Wallner
<mike@php.net>
Fri, 26 Aug 2005 07:31:06 +0000
(07:31 +0000)
http_api.c
patch
|
blob
|
history
diff --git
a/http_api.c
b/http_api.c
index 8246d5907a4e0022af76e1a338fdd944c94f1c34..e12e1eb80228ffe24f309337cb66a051012b49c8 100644
(file)
--- 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) \
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); \
\
if (log) { \
php_stream_printf(log TSRMLS_CC, "%s [%12s] %32s <%s>%s", datetime, type, header, SG(request_info).request_uri, PHP_EOL); \