diff options
| author | foobar <sniper@php.net> | 2005-01-10 15:39:20 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2005-01-10 15:39:20 +0000 |
| commit | 2a28c3b94af9e5ab50696e3becc17295881ef75e (patch) | |
| tree | 8a8c51407a4e7c61014877cd2ae0cc88e24de810 /sapi | |
| parent | eaf9597c0493aa8b78893937c80109cbcc252e58 (diff) | |
| download | php-git-2a28c3b94af9e5ab50696e3becc17295881ef75e.tar.gz | |
MFH: - Fixed bug #28074 (FastCGI: stderr should be written in a FCGI stderr stream).
Diffstat (limited to 'sapi')
| -rw-r--r-- | sapi/cgi/cgi_main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index ba5c7051c0..36ecac1c9b 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -481,6 +481,13 @@ static void sapi_cgi_register_variables(zval *track_vars_array TSRMLS_DC) static void sapi_cgi_log_message(char *message) { +#if PHP_FASTCGI + if (!FCGX_IsCGI()) { + FCGX_Request *request = (FCGX_Request *)SG(server_context); + FCGX_FPrintF( request->err, "%s\n", message ); + /* ignore return code */ + } else +#endif /* PHP_FASTCGI */ fprintf(stderr, "%s\n", message); } |
