Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68340 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92335 invoked from network); 31 Jul 2013 02:00:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2013 02:00:27 -0000 Received: from [127.0.0.1] ([127.0.0.1:5057]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id C9/BC-30402-ABF68F15 for ; Tue, 30 Jul 2013 22:00:26 -0400 Authentication-Results: pb1.pair.com smtp.mail=crrodriguez@opensuse.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=crrodriguez@opensuse.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain opensuse.org from 176.9.56.74 cause and error) X-PHP-List-Original-Sender: crrodriguez@opensuse.org X-Host-Fingerprint: 176.9.56.74 ex6.cdburnerxp.se Received: from [176.9.56.74] ([176.9.56.74:56819] helo=ex6.cdburnerxp.se) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EE/AC-30402-16B68F15 for ; Tue, 30 Jul 2013 21:41:54 -0400 Received: from ex6.cdburnerxp.se (localhost [127.0.0.1]) by ex6.cdburnerxp.se (Postfix) with ESMTP id 46D2915902A9; Wed, 31 Jul 2013 03:41:51 +0200 (CEST) To: internals@lists.php.net Cc: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Wed, 31 Jul 2013 03:41:49 +0200 Message-ID: <1375234909-704633-1-git-send-email-crrodriguez@opensuse.org> X-Mailer: git-send-email 1.8.1.4 Subject: [PATCH] [RESEND] sapi/apache2*: Support apache 2.4 per module logging From: crrodriguez@opensuse.org (=?UTF-8?q?Cristian=20Rodr=C3=ADguez?=) --- sapi/apache2filter/sapi_apache2.c | 3 +++ sapi/apache2handler/mod_php5.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index c308a29..1448d52 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -751,6 +751,9 @@ static size_t php_apache_fsizer_stream(void *handle TSRMLS_DC) return 0; } +#ifdef APLOG_USE_MODULE +APLOG_USE_MODULE(php5); +#endif AP_MODULE_DECLARE_DATA module php5_module = { STANDARD20_MODULE_STUFF, create_php_config, /* create per-directory config structure */ diff --git a/sapi/apache2handler/mod_php5.c b/sapi/apache2handler/mod_php5.c index 56ef1bc..fee4951 100644 --- a/sapi/apache2handler/mod_php5.c +++ b/sapi/apache2handler/mod_php5.c @@ -25,6 +25,10 @@ #include "php.h" #include "php_apache.h" +#ifdef APLOG_USE_MODULE +APLOG_USE_MODULE(php5); +#endif + AP_MODULE_DECLARE_DATA module php5_module = { STANDARD20_MODULE_STUFF, create_php_config, /* create per-directory config structure */ -- 1.8.1.4