Hello modperl,
Recently I found a strange behavior of the PerlAddVar directive in
the multiply location container. Here example:
1. perladdvar.conf (include'd in the main httpd.conf):
<location "/perladdvar">
SetHandler perl-script
PerlHandler Test::PerlAddVar
PerlAddVar VAR 1
PerlAddVar VAR 2
</location>
<location "/perladdvar">
PerlAddVar VAR 3
</location>
<location "/perladdvar">
PerlAddVar VAR 4
</location>
2. Test/PerlAddVar.pm:
package Test::PerlAddVar;
use strict;
use Apache::Constants qw ( :common );
sub handler {
my $r = shift;
$r->send_http_header('text/plain');
$r->print("VAR: $_\n") for $r->dir_config->get('VAR');
return OK;
}
1;
3. result:
VAR: 4
VAR: 3
VAR: 1
VAR: 2
In reverse order. But inside one <location> declaration in the right
order. Is this expected or I'm doing something wrong ? Thanks.
--
WBR Mike
mailto: [EMAIL PROTECTED]
ICQ: 280990142
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html