cvs: php-src(PHP_5_0) / php.ini-dist php.ini-recommended /sapi/cgi cgi_main.c
| From: | Jani Taskinen | Date: | Thu, 28 Apr 2005 13:14:55 +0000 |
| Subject: | cvs: php-src(PHP_5_0) / php.ini-dist php.ini-recommended /sapi/cgi cgi_main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-31646@lists.php.net to get a copy of this message | ||
sniper Thu Apr 28 09:14:55 2005 EDT
Modified files: (Branch: PHP_5_0)
/php-src php.ini-dist php.ini-recommended
/php-src/sapi/cgi cgi_main.c
Log:
MFH
http://cvs.php.net/diff.php/php-src/php.ini-dist?r1=1.215.2.9&r2=1.215.2.10&ty=u
Index: php-src/php.ini-dist
diff -u php-src/php.ini-dist:1.215.2.9 php-src/php.ini-dist:1.215.2.10
--- php-src/php.ini-dist:1.215.2.9 Sat Apr 2 18:04:32 2005
+++ php-src/php.ini-dist Thu Apr 28 09:14:55 2005
@@ -477,6 +477,9 @@
; Set to 1 if running under IIS. Default is zero.
; fastcgi.impersonate = 1;
+; Disable logging through FastCGI connection
+; fastcgi.log = 0
+
; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
; is supported by Apache. When this option is set to 1 PHP will send
http://cvs.php.net/diff.php/php-src/php.ini-recommended?r1=1.159.2.9&r2=1.159.2.10&ty=u
Index: php-src/php.ini-recommended
diff -u php-src/php.ini-recommended:1.159.2.9 php-src/php.ini-recommended:1.159.2.10
--- php-src/php.ini-recommended:1.159.2.9 Sat Apr 2 18:04:32 2005
+++ php-src/php.ini-recommended Thu Apr 28 09:14:55 2005
@@ -535,6 +535,9 @@
; Set to 1 if running under IIS. Default is zero.
; fastcgi.impersonate = 1;
+; Disable logging through FastCGI connection
+; fastcgi.log = 0
+
; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
; is supported by Apache. When this option is set to 1 PHP will send
http://cvs.php.net/diff.php/php-src/sapi/cgi/cgi_main.c?r1=1.256.2.4&r2=1.256.2.5&ty=u
Index: php-src/sapi/cgi/cgi_main.c
diff -u php-src/sapi/cgi/cgi_main.c:1.256.2.4 php-src/sapi/cgi/cgi_main.c:1.256.2.5
--- php-src/sapi/cgi/cgi_main.c:1.256.2.4 Thu Feb 10 21:06:48 2005
+++ php-src/sapi/cgi/cgi_main.c Thu Apr 28 09:14:55 2005
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: cgi_main.c,v 1.256.2.4 2005/02/11 02:06:48 sniper Exp $ */
+/* $Id: cgi_main.c,v 1.256.2.5 2005/04/28 13:14:55 sniper Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -482,9 +482,14 @@
static void sapi_cgi_log_message(char *message)
{
#if PHP_FASTCGI
+ int logging = 1;
TSRMLS_FETCH();
- if (!FCGX_IsCGI()) {
+ if (cfg_get_long("fastcgi.logging", &logging) == FAILURE) {
+ logging = 1;
+ }
+
+ if (!FCGX_IsCGI() && logging) {
FCGX_Request *request = (FCGX_Request *)SG(server_context);
FCGX_FPrintF( request->err, "%s\n", message );
/* ignore return code */