diff options
Diffstat (limited to 'sapi/apache/php_apache.c')
| -rw-r--r-- | sapi/apache/php_apache.c | 15 | 
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, ""); | 
