summaryrefslogtreecommitdiff
path: root/mod_php4.c
diff options
context:
space:
mode:
Diffstat (limited to 'mod_php4.c')
-rw-r--r--mod_php4.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod_php4.c b/mod_php4.c
index bcd7415cb2..cc73f4bc89 100644
--- a/mod_php4.c
+++ b/mod_php4.c
@@ -488,7 +488,9 @@ void php_init_handler(server_rec *s, pool *p)
apache_php_initialized = 1;
}
#if MODULE_MAGIC_NUMBER >= 19980527
- ap_add_version_component("PHP/" PHP_VERSION);
+ if (INI_INT("expose_php")) {
+ ap_add_version_component("PHP/" PHP_VERSION);
+ }
#endif
}