You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Jean-Pierre Arneodo <ar...@micronet.fr> on 1997/09/30 00:10:03 UTC

os-windows/1179: Incompatibility between directive LoadModule and APACHE_TLS on Windows 95

>Number:         1179
>Category:       os-windows
>Synopsis:       Incompatibility between directive LoadModule and APACHE_TLS on Windows 95
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Sep 29 15:10:01 1997
>Originator:     arneodo@micronet.fr
>Organization:
apache
>Release:        1.3a1
>Environment:
Windows 95
Windows NT4.0
VC++ 5.0
>Description:
A module using APACHE_TLS doesn't work on Windows 95
when it is loaded by LoadModule directive.
It works fine on Windows NT4.0
ApacheCore was built on NT4.0
ApacheTest was built on NT4.0 and 95, same result.
>How-To-Repeat:

#include "httpd.h"
#include "http_config.h"
#include "multithread.h"

/*
** Directive: LoadModule test_module modules/ApacheTest.dll
**
** This directive doesn't work on Windows 95 if you use
** APACHE_TLS in the module.
**
** Configuration:
**  - ApacheCore compiled on NT4 with msvc+5.0
**  - ApacheTest compiled on Win95 with msvc++4.2
**
*/

/*static            request_rec *out;  LoadModule works fine */
static APACHE_TLS request_rec *out;	/* LoadModule doesn't work */

static int test_handler (request_rec *r)
{
	out = r;	/* Just for a test */
    return OK;
}

static handler_rec test_handlers[] = {
	{ "test", test_handler },
	{ NULL }
};

module MODULE_VAR_EXPORT test_module =
{
    STANDARD_MODULE_STUFF,
    NULL,			/* initializer */
    NULL,			/* dir config creater */
    NULL,			/* dir merger --- default is to override */
    NULL,			/* server config */
    NULL,			/* merge server config */
    NULL,			/* command table */
    test_handlers,  /* handlers */
    NULL,           /* filename translation */
    NULL,           /* check_user_id */
    NULL,           /* check auth */
    NULL,           /* check access */
    NULL,           /* type_checker */
    NULL,           /* fixups */
    NULL,           /* logger */
    NULL,           /* header parser */
    NULL            /* child_init */
};

>Fix:
Sorr
>Audit-Trail:
>Unformatted: