Hi,

I am trying to get a container directive working. The code looks this

my @directives=(
  ...
   {
    name         => '<ClickPathUAExceptions',
    func         => __PACKAGE__ . '::ClickPathUAExceptions',
    req_override => Apache::RSRC_CONF,
    args_how     => Apache::RAW_ARGS,
    errmsg       => '<ClickPathUAExceptions>
name1: regexp1
name2: regexp2
...
</ClickPathUAExceptions>',
   },
...
);

Apache recognizes the container correctly because it processes statements 
after the container but the ClickPathUAExceptions function is called with 
only one arg that contains the closing '>'.

How do I get the container contents?

One other note, I tried "Apache::RSRC_CONF | Apache::OR_EXEC_ON_READ" but got 
an "unknown Apache:: constant OR_EXEC_ON_READ 
at /usr/lib/perl5/vendor_perl/5.8.5/i586-linux-thread-multi/ModPerl/Const.pm 
line 51." while 

use Apache::Const -compile => qw(DECLINED OK
                                 OR_ALL RSRC_CONF OR_EXEC_ON_READ
                                 TAKE1 RAW_ARGS NO_ARGS);

What is wrong with that?

This is mod_perl-2.0.0-RC1.

Torsten

Attachment: pgpn6pJYTbZRc.pgp
Description: PGP signature

Reply via email to