summaryrefslogtreecommitdiff
path: root/sapi/apache/php_apache.c
diff options
context:
space:
mode:
authorVenkat Raghavan S <rvenkat@php.net>2002-05-31 04:49:45 +0000
committerVenkat Raghavan S <rvenkat@php.net>2002-05-31 04:49:45 +0000
commit575e3682f53e6e0146bc1aeed9cf721dbb196b35 (patch)
tree906dce8bef2236e7ccf083a5586f92bf4a279650 /sapi/apache/php_apache.c
parentc4fd805ce4dbb1effc2fe8970e5a906a8908990b (diff)
downloadphp-git-575e3682f53e6e0146bc1aeed9cf721dbb196b35.tar.gz
NetWare related changes
Diffstat (limited to 'sapi/apache/php_apache.c')
-rw-r--r--sapi/apache/php_apache.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/sapi/apache/php_apache.c b/sapi/apache/php_apache.c
index b7572922b5..21ca18a177 100644
--- a/sapi/apache/php_apache.c
+++ b/sapi/apache/php_apache.c
@@ -21,7 +21,7 @@
#include "php_apache_http.h"
-#ifdef PHP_WIN32
+#if defined(PHP_WIN32) || defined(NETWARE)
#include "zend.h"
#include "ap_compat.h"
#else
@@ -77,8 +77,12 @@ static void php_apache_globals_ctor(php_apache_info_struct *apache_globals TSRML
static PHP_MINIT_FUNCTION(apache)
{
#ifdef ZTS
+#ifndef NETWARE
ts_allocate_id(&php_apache_info_id, sizeof(php_apache_info_struct), php_apache_globals_ctor, NULL);
#else
+ ts_allocate_id(&php_apache_info_id, sizeof(php_apache_info_struct), (void (*)(void *, void ***))php_apache_globals_ctor, NULL);
+#endif
+#else
php_apache_globals_ctor(&php_apache_info TSRMLS_CC);
#endif
REGISTER_INI_ENTRIES();
@@ -180,6 +184,10 @@ PHP_MINFO_FUNCTION(apache)
php_info_print_table_row(1, "Apache for Windows 95/NT");
php_info_print_table_end();
php_info_print_table_start();
+#elif defined(NETWARE)
+ php_info_print_table_row(1, "Apache for NetWare");
+ php_info_print_table_end();
+ php_info_print_table_start();
#else
php_info_print_table_row(2, "APACHE_INCLUDE", PHP_APACHE_INCLUDE);
php_info_print_table_row(2, "APACHE_TARGET", PHP_APACHE_TARGET);
@@ -204,6 +212,11 @@ PHP_MINFO_FUNCTION(apache)
sprintf(output_buf, "Connection: %d - Keep-Alive: %d", serv->timeout, serv->keep_alive_timeout);
php_info_print_table_row(2, "Timeouts", output_buf);
#if !defined(WIN32) && !defined(WINNT)
+/*
+ This block seems to be working on NetWare; But it seems to be showing
+ all modules instead of just the loaded ones
+*/
+
php_info_print_table_row(2, "Server Root", server_root);
strcpy(modulenames, "");