cvs: php-src(PHP_5_0) / NEWS /sapi/cgi cgi_main.c

From: Date: Mon, 10 Jan 2005 15:38:51 +0000
Subject: cvs: php-src(PHP_5_0) / NEWS /sapi/cgi cgi_main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-29853@lists.php.net to get a copy of this message
sniper Mon Jan 10 10:38:51 2005 EDT Modified files: (Branch: PHP_5_0) /php-src NEWS /php-src/sapi/cgi cgi_main.c Log: - Fixed bug #28074 (FastCGI: stderr should be written in a FCGI stderr stream). (chris at ex-parrot dot com) http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1760.2.181&r2=1.1760.2.182&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1760.2.181 php-src/NEWS:1.1760.2.182 --- php-src/NEWS:1.1760.2.181 Sun Jan 9 13:25:43 2005 +++ php-src/NEWS Mon Jan 10 10:38:50 2005 @@ -26,7 +26,9 @@ path of the request URI). (kameshj at fastmail dot fm) - Fixed bug #28930 (PHP sources pick wrong header files generated by bison). (eggert at gnu dot org, Jani) - +- Fixed bug #28074 (FastCGI: stderr should be written in a FCGI stderr stream). + (chris at ex-parrot dot com) + 15 Dec 2004, PHP 5.0.3 - Added the %F modifier to *printf to render a non-locale-aware representation of a float with the . as decimal seperator. (Derick) http://cvs.php.net/diff.php/php-src/sapi/cgi/cgi_main.c?r1=1.256&r2=1.256.2.1&ty=u Index: php-src/sapi/cgi/cgi_main.c diff -u php-src/sapi/cgi/cgi_main.c:1.256 php-src/sapi/cgi/cgi_main.c:1.256.2.1 --- php-src/sapi/cgi/cgi_main.c:1.256 Wed Jul 14 18:30:27 2004 +++ php-src/sapi/cgi/cgi_main.c Mon Jan 10 10:38:50 2005 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: cgi_main.c,v 1.256 2004/07/14 22:30:27 edink Exp $ */ +/* $Id: cgi_main.c,v 1.256.2.1 2005/01/10 15:38:50 sniper Exp $ */ #include "php.h" #include "php_globals.h" @@ -481,6 +481,13 @@ 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); }

« previous php.cvs (#29853) next »