cvs: php4 /sapi/fastcgi fastcgi.c

From: Date: Fri, 04 Jan 2002 14:39:46 +0000
Subject: cvs: php4 /sapi/fastcgi fastcgi.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8940@lists.php.net to get a copy of this message
joosters Fri Jan 4 09:39:46 2002 EDT Modified files: /php4/sapi/fastcgi fastcgi.c Log: Added log_message function to the FastCGI sapi, so you can see error output from scripts Index: php4/sapi/fastcgi/fastcgi.c diff -u php4/sapi/fastcgi/fastcgi.c:1.21 php4/sapi/fastcgi/fastcgi.c:1.22 --- php4/sapi/fastcgi/fastcgi.c:1.21 Tue Dec 11 10:31:59 2001 +++ php4/sapi/fastcgi/fastcgi.c Fri Jan 4 09:39:46 2002 @@ -163,6 +163,15 @@ } +static void sapi_fastcgi_log_message(char *message) +{ +#ifdef DEBUG_FASTCGI + fprintf( stderr, "Log Message: %s\n", message ); +#endif + FCGX_FPrintF(err, "%s\n", message); +} + + static sapi_module_struct fastcgi_sapi_module = { "fastcgi", "FastCGI", @@ -187,7 +196,7 @@ sapi_fastcgi_read_cookies, sapi_fastcgi_register_variables, - NULL, /* Log message */ + sapi_fastcgi_log_message, NULL, /* Block interruptions */ NULL, /* Unblock interruptions */

« previous php.cvs (#8940) next »