From: Martin Vobruba Date: Tue, 24 May 2016 16:13:00 +0000 (+0200) Subject: Enable per-module logging in Apache 2.4+ X-Git-Tag: php-7.1.0alpha1~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ed544d05bcc07e23ab3a1a9974fe9b4be6ae243;p=php Enable per-module logging in Apache 2.4+ --- diff --git a/sapi/apache2handler/php_apache.h b/sapi/apache2handler/php_apache.h index c1c52f5697..69c01bbe02 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;