cvs: php4 /sapi/apache2filter sapi_apache2.c
| From: | Sterling Hughes | Date: | Thu, 16 Aug 2001 06:05:58 +0000 |
| Subject: | cvs: php4 /sapi/apache2filter sapi_apache2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6880@lists.php.net to get a copy of this message | ||
sterling Thu Aug 16 02:05:58 2001 EDT
Modified files:
/php4/sapi/apache2filter sapi_apache2.c
Log:
Ryan Bloom's fix of my fix. ;)
Index: php4/sapi/apache2filter/sapi_apache2.c
diff -u php4/sapi/apache2filter/sapi_apache2.c:1.40 php4/sapi/apache2filter/sapi_apache2.c:1.41
--- php4/sapi/apache2filter/sapi_apache2.c:1.40 Thu Aug 16 01:19:29 2001
+++ php4/sapi/apache2filter/sapi_apache2.c Thu Aug 16 02:05:57 2001
@@ -182,8 +182,13 @@
TSRMLS_FETCH();
ctx = SG(server_context);
-
- aplog_error(NULL, 0, APLOG_ERR | APLOG_NOERRNO, ctx->f->r->server, "%s", msg);
+
+ /* We use APLOG_STARTUP because it keeps us from printing the
+ * data and time information at the beginning of the error log
+ * line. Not sure if this is correct, but it mirrors what happens
+ * with Apache 1.3 -- rbb
+ */
+ ap_log_error(NULL, APLOG_ERR | APLOG_NOERRNO | APLOG_STARTUP, 0, ctx->f->r->server,
"%s", msg);
}
static sapi_module_struct apache2_sapi_module = {