diff options
author | Martin Vobruba <vobruba.martin@gmail.com> | 2016-05-24 18:13:00 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-06-03 00:08:57 +0200 |
commit | 1ed544d05bcc07e23ab3a1a9974fe9b4be6ae243 (patch) | |
tree | 5a521f62149265121f2f638211e39ee39e0e3282 /sapi/apache2handler/php_apache.h | |
parent | ff90d8e0bae75a7a70d306fd6183242471b9c010 (diff) | |
download | php-git-1ed544d05bcc07e23ab3a1a9974fe9b4be6ae243.tar.gz |
Enable per-module logging in Apache 2.4+
Diffstat (limited to 'sapi/apache2handler/php_apache.h')
-rw-r--r-- | sapi/apache2handler/php_apache.h | 6 |
1 files changed, 6 insertions, 0 deletions
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; |