Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62073 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87009 invoked from network); 6 Aug 2012 21:59:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Aug 2012 21:59:43 -0000 Authentication-Results: pb1.pair.com header.from=cr@cristianrodriguez.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cr@cristianrodriguez.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain cristianrodriguez.net designates 74.125.82.170 as permitted sender) X-PHP-List-Original-Sender: cr@cristianrodriguez.net X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:37687] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 12/57-03102-D4E30205 for ; Mon, 06 Aug 2012 17:59:42 -0400 Received: by weyr1 with SMTP id r1so2719035wey.29 for ; Mon, 06 Aug 2012 14:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cristianrodriguez.net; s=google; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=G0fAJzUE8qTbeICVFC5qyZ+XLQHPraJwHpW1Ndem+S4=; b=d0nq1PTEsFVkHsAkLcR7m01K6o09RxkbnSsSfA41kShHsU8KQQmVedfuIxFmOlaBvJ rA81iLt6EJpR29iCsogPcgvLlyjJQwUnMerHYFJKYUWcMFI+twXLVUH+sxrgVPQC3Q8K 6PtBmPEWm+eb9k8Y4414egXkZIyx7wOfrmCtI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=G0fAJzUE8qTbeICVFC5qyZ+XLQHPraJwHpW1Ndem+S4=; b=j6cThO4pNUqckSQOeH1ePfnjL6opxDkUUAOr8Kd3DrZ9XRKsAHNmDs1rndCZT32uFH QzqAah8YSqgk9ER+0vhclv/SeO+C9U0Go251UW1UC98JDbleL7zMjJUmNZUpQk63eoHb yaKQa3D5mLlbsBS9yAbZTfUESh8QvQF1WFKFzrdZtiAQWnJ3ylgvushPxfUsAqwAAAJF ASw/vekhwD1JwP8U95B63NxGObhmKKAVFoiYsjnW5TdHnkKr5qevq/Dh4gZKf7b47TkS ZWPfIpJhAjP61PYEfl8bRGLrsGwJ8vzLhkTtEvL9u7wjGp3M/G9xp4gwnyY9f7owMwoN Pe1Q== Received: by 10.180.78.4 with SMTP id x4mr21704653wiw.19.1344290379282; Mon, 06 Aug 2012 14:59:39 -0700 (PDT) Received: from ex6.cdburnerxp.se (ex6.cdburnerxp.se. [176.9.56.74]) by mx.google.com with ESMTPS id t7sm26171837wix.6.2012.08.06.14.59.38 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 06 Aug 2012 14:59:38 -0700 (PDT) Sender: =?UTF-8?Q?Cristian_Rodr=C3=ADguez?= To: internals@lists.php.net Cc: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Mon, 6 Aug 2012 23:59:12 +0200 Message-ID: <1344290352-10556-1-git-send-email-crrodriguez@opensuse.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQk5/VtzddkGAnZVJchWMvoZ2CzXDr+lLAhrpNyMTdB2JAvWcvHc9pGAJdkMR2vWFHqZEvFS Subject: [PATCH] Fix per-module logging in apache 2.4 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 0b51cfb..a8fec5c 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -744,6 +744,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 9df4f25..35d5548 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.7.10.4