# [PATCH] [RESEND] sapi/apache2*: Support apache 2.4 per module logging

- Thread: https://externals.io/message/68340
- Original archive: https://news-web.php.net/php.internals/68340
- Started by crrodriguez@opensuse.org on 2013-07-31T01:41:49+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #68340 — crrodriguez@opensuse.org — 2013-07-31T01:41:49+00:00

URL: https://externals.io/message/68340#68340

---
 sapi/apache2filter/sapi_apache2.c | 3 +++
 sapi/apache2handler/mod_php5.c    | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c
index c308a29..1448d52 100644
--- a/sapi/apache2filter/sapi_apache2.c
+++ b/sapi/apache2filter/sapi_apache2.c
@@ -751,6 +751,9 @@ static size_t php_apache_fsizer_stream(void *handle TSRMLS_DC)
 	return 0;
 }
 
+#ifdef APLOG_USE_MODULE
+APLOG_USE_MODULE(php5);
+#endif
 AP_MODULE_DECLARE_DATA module php5_module = {
 	STANDARD20_MODULE_STUFF,
 	create_php_config,		/* create per-directory config structure */
diff --git a/sapi/apache2handler/mod_php5.c b/sapi/apache2handler/mod_php5.c
index 56ef1bc..fee4951 100644
--- a/sapi/apache2handler/mod_php5.c
+++ b/sapi/apache2handler/mod_php5.c
@@ -25,6 +25,10 @@
 #include "php.h"
 #include "php_apache.h"
 
+#ifdef APLOG_USE_MODULE
+APLOG_USE_MODULE(php5);
+#endif
+
 AP_MODULE_DECLARE_DATA module php5_module = {
 	STANDARD20_MODULE_STUFF,
 	create_php_config,		/* create per-directory config structure */
-- 
1.8.1.4
