com php-src: Enable per-module logging in Apache 2.4+: sapi/apache2handler/php_apache.h
| From: | Anatol Belski | Date: | Thu, 02 Jun 2016 22:08:57 +0000 |
| Subject: | com php-src: Enable per-module logging in Apache 2.4+: sapi/apache2handler/php_apache.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92289@lists.php.net to get a copy of this message | ||
Commit: 1ed544d05bcc07e23ab3a1a9974fe9b4be6ae243
Author: Martin Vobruba <vobruba.martin@gmail.com> Tue, 24 May 2016 18:13:00 +0200
Committer: Anatol Belski <ab@php.net> Fri, 3 Jun 2016 00:08:57 +0200
Parents: ff90d8e0bae75a7a70d306fd6183242471b9c010
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1ed544d05bcc07e23ab3a1a9974fe9b4be6ae243
Log:
Enable per-module logging in Apache 2.4+
Changed paths:
M sapi/apache2handler/php_apache.h
Diff:
diff --git a/sapi/apache2handler/php_apache.h b/sapi/apache2handler/php_apache.h
index c1c52f5..69c01bb 100644
--- a/sapi/apache2handler/php_apache.h
+++ b/sapi/apache2handler/php_apache.h
@@ -24,10 +24,16 @@
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
+#include "http_log.h"
#include "php.h"
#include "main/php_streams.h"
+/* Enable per-module logging in Apache 2.4+ */
+#ifdef APLOG_USE_MODULE
+APLOG_USE_MODULE(php7);
+#endif
+
/* Declare this so we can get to it from outside the sapi_apache2.c file */
extern module AP_MODULE_DECLARE_DATA php7_module;