httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael A Nachbaur <m...@nachbaur.com>
Subject Patch: More flexible Apache version number detection
Date Wed, 12 May 2004 23:43:41 GMT
--- TestServer.pm-orig  2004-05-12 00:41:21.172613400 -0700
+++ TestServer.pm       2004-05-12 00:41:24.507106480 -0700
@@ -55,6 +55,10 @@
     $self->{version} = $self->{config}->httpd_version || '';
     $self->{mpm}     = $self->{config}->httpd_mpm     || '';
     ($self->{rev})   = $self->{version} =~ m:^Apache/(\d)\.:;
+    ($self->{rev})   = $self->{version} =~ m:^Apache.*?/(\d)\.:
+        unless ($self->{rev});
+    ($self->{rev})   = $self->{version} =~ m:^.*?Apache.*?/(\d)\.:
+        unless ($self->{rev});
     $self->{rev}   ||= 2;

     $self;

-- 
Michael A. Nachbaur <mike@nachbaur.com>
http://nachbaur.com/pgpkey.asc

Mime
View raw message