Subject: | MOD_PERL_API_VERSION - unnecessary warnings |
when running CGI::Application::Dispatch 1.04 under perl 5.8.4, Apache/1.3.33 (Debian GNU/Linux), mod_perl V1 unnecessary warnings are emitted. The attached patch fixes this.
Thanks,
Adam Thick.
--- /root/Dispatch.pm 2005-12-09 13:08:51.523187336 +1100
+++ /usr/share/perl5/CGI/Application/Dispatch.pm 2005-12-09 13:03:03.828045032 +1100
@@ -9,7 +9,7 @@
BEGIN {
if( $ENV{MOD_PERL} ) {
- $MP2 = $ENV{MOD_PERL_API_VERSION} == 2;
+ $MP2 = $ENV{MOD_PERL_API_VERSION} && $ENV{MOD_PERL_API_VERSION} eq '2';
if( $MP2 ) {
require Apache2::Const;
require Apache2::RequestUtil;