Subject: | Undef warnings due to undefined dir_config values |
I'm using
Apache-SessionManager-1.03 with libapreq2-2.04-dev and mod_perl-2.0.0-RC4. I get a lot of undef warnings, such as:
Use of uninitialized value in string eq at /opt/perl-5.8.3/lib/site_perl/5.8.3/Apache/SessionManager.pm line 78.
Use of uninitialized value in string eq at /opt/perl-5.8.3/lib/site_perl/5.8.3/Apache/SessionManager.pm line 145.
Use of uninitialized value in string eq at /opt/perl-5.8.3/lib/site_perl/5.8.3/Apache/SessionManager.pm line 188.
Use of uninitialized value in string eq at /opt/perl-5.8.3/lib/site_perl/5.8.3/Apache/SessionManager.pm line 231.
Use of uninitialized value in string eq at /opt/perl-5.8.3/lib/site_perl/5.8.3/Apache/SessionManager.pm line 240.
Use of uninitialized value in string eq at /opt/perl-5.8.3/lib/site_perl/5.8.3/Apache/SessionManager.pm line 246.
I believe this section:
foreach ( qw/SessionManagerURITracking SessionManagerTracking SessionManagerEnableModBackhand
SessionManagerStoreArgs SessionManagerCookieArgs SessionManagerSetEnv SessionManagerExpire
SessionManagerHeaderExclude SessionManagerIPExclude/ ) {
$session_config{$_} = $r->dir_config($_);
}
should probably do a || '' or a || 0. I haven't submitted a patch because I'm not sure whether some expect numbers and some don't. If they can all be '', I can submit one.