Skip to content

Commit 1ed544d

Browse files
vobruba-martinweltling
authored andcommitted
Enable per-module logging in Apache 2.4+
1 parent ff90d8e commit 1ed544d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎sapi/apache2handler/php_apache.h

+6
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,16 @@
2424
#include "httpd.h"
2525
#include "http_config.h"
2626
#include "http_core.h"
27+
#include "http_log.h"
2728

2829
#include "php.h"
2930
#include "main/php_streams.h"
3031

32+
/* Enable per-module logging in Apache 2.4+ */
33+
#ifdef APLOG_USE_MODULE
34+
APLOG_USE_MODULE(php7);
35+
#endif
36+
3137
/* Declare this so we can get to it from outside the sapi_apache2.c file */
3238
extern module AP_MODULE_DECLARE_DATA php7_module;
3339

0 commit comments

Comments
 (0)