]> granicus.if.org Git - php/commitdiff
Enable per-module logging in Apache 2.4+
authorMartin Vobruba <vobruba.martin@gmail.com>
Tue, 24 May 2016 16:13:00 +0000 (18:13 +0200)
committerAnatol Belski <ab@php.net>
Thu, 2 Jun 2016 22:08:57 +0000 (00:08 +0200)
sapi/apache2handler/php_apache.h

index c1c52f5697ef44533f8f75c62e132fec8c33c8f2..69c01bbe021eb523432a1911b53c7ea6bcea8af0 100644 (file)
 #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;