httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject Re: libapreq-1.2 release candidate
Date Thu, 01 May 2003 02:06:34 GMT
Stas Bekman wrote:

> I'm thinking whether it's possible to still keep the Apache::Test name.

For example Apache::Test's 'make install' could hunt down Apache/ in 
@INC and delete it and install its own version of Apache/ which will 
still work as before and will be exactly the same as Apache/

The problem is how to prevent from mod_perl 1.x upgrades from overwriting 
this. This certainly could be avoided by fixing the next mod_perl 1.28 
release, but what if someone upgrades from 1.26 to 1.27?

Another possible solution is this:

Move all code from Apache/, but its $VERSION to Apache/ The 
latter will declare 'package Apache::Test'. So you need to require 
Apache/ everywhere, but the rest will work as before. What this 
approach achieves is that you don't have the collision, while you still keep 
on using Apache::Test in your code. Admittedly it's a bit confusing that you 
require Apache::TestCode, but use Apache::Test:: functions.

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

View raw message