summaryrefslogtreecommitdiff
path: root/sapi/apache
diff options
context:
space:
mode:
authorDaniel Beulshausen <dbeu@php.net>2000-12-10 22:40:07 +0000
committerDaniel Beulshausen <dbeu@php.net>2000-12-10 22:40:07 +0000
commitd41137fedfca157ce76f339c28359019ca030322 (patch)
tree744c0935dc6d29f42f3d5c9e7156afe3fcd7b2ad /sapi/apache
parent1f31360f0188d47ca81d8873e2ac6cde2211828b (diff)
downloadphp-git-d41137fedfca157ce76f339c28359019ca030322.tar.gz
fix win32 apache module
# this is ugly, has someone a better way?
Diffstat (limited to 'sapi/apache')
-rw-r--r--sapi/apache/php_apache.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sapi/apache/php_apache.c b/sapi/apache/php_apache.c
index 3ca88f1dc7..13968ec5f0 100644
--- a/sapi/apache/php_apache.c
+++ b/sapi/apache/php_apache.c
@@ -74,31 +74,34 @@ function_entry apache_functions[] = {
{NULL, NULL, NULL}
};
-
+#ifndef PHP_WIN32
PHP_INI_BEGIN()
STD_PHP_INI_ENTRY("xbithack", "0", PHP_INI_ALL, OnUpdateInt, xbithack, php_apache_info_struct, php_apache_info)
STD_PHP_INI_ENTRY("engine", "1", PHP_INI_ALL, OnUpdateInt, engine, php_apache_info_struct, php_apache_info)
STD_PHP_INI_ENTRY("last_modified", "0", PHP_INI_ALL, OnUpdateInt, last_modified, php_apache_info_struct, php_apache_info)
PHP_INI_END()
-
static PHP_MINIT_FUNCTION(apache)
{
REGISTER_INI_ENTRIES();
return SUCCESS;
}
-
static PHP_MSHUTDOWN_FUNCTION(apache)
{
UNREGISTER_INI_ENTRIES();
return SUCCESS;
}
-
zend_module_entry apache_module_entry = {
"apache", apache_functions, PHP_MINIT(apache), PHP_MSHUTDOWN(apache), NULL, NULL, PHP_MINFO(apache), STANDARD_MODULE_PROPERTIES
};
+#else
+zend_module_entry apache_module_entry = {
+ "apache", apache_functions, NULL, NULL, NULL, NULL, PHP_MINFO(apache), STANDARD_MODULE_PROPERTIES
+};
+#endif
+
/* {{{ proto string apache_note(string note_name [, string note_value])
Get and set Apache request notes */