Subject: | PATCH: add -D APACHE24 if running under httpd 2.4 |
Date: | Mon, 05 Aug 2013 10:36:02 -0500 |
To: | bug-apache-test [...] rt.cpan.org, phred [...] cpan.org |
From: | Michael Schout <mschout [...] gkg.net> |
I'm the maintainer of Apache::AuthCookie. As you probably already know,
the authentication API in httpd 2.4 has changed radically. As a result,
for authentication modules that need to support httpd 2.x as well as
2.4, there is a need to have a conditional define to determine if we are
running under Apache 2.4 or later.
The attached patch adds -D APACHE24 (this is in addition to -D APACHE2)
if running under httpd 2.4.
Example of why this is needed:
<IfDefine APACHE24>
PerlAddAuthzProvider user My::Auth->authz
</IfDefine>
# and since this makes PerlAuthzHandler pointless in httpd 2.4:
<IfDefine APACHE2>
...
<IfDefine !APACHE24>
PerlAuthzHandler ....
</IfDefine>
</IfDefine>
I'd really like to see this make it into Apache::Test for the official
httpd 2.4 support release.
Thanks!
Michael Schout
Message body is not shown because sender requested not to inline it.