httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <>
Subject Re: libapreq2 crashes
Date Tue, 11 Nov 2003 04:27:02 GMT
Vladimir Dudov <> writes:

> Apache (2.0.47, Win32) crashes if I call apreq_request(r, NULL) from
> my module when is not loaded.

It's easy to add a test (to your module's register hook) 
that the proper environment for libapreq2 is available.  
For mod_apreq, you can test

  strcmp(apreq_env_name, "APACHE2") == 0

and if you need a minimum version of, test

  apreq_env_magic_number >= 20031107

or somesuch.  That's what we do for the perl glue,
because we expect this sort of oversight 
( not loaded) to be quite common.

Joe Schaefer

View raw message