Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

cmd_data analogous

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


ysyrota at softservecom

Feb 11, 2003, 3:15 AM

Post #1 of 2 (415 views)
Permalink
cmd_data analogous

Hello.

The command_rec structure in Apache has a useful field named cmd_data.
Is there an analogous field in the @APACHE_MODULE_COMMANDS from
mod_perl2?

-- Yuriy Syrota


stas at stason

Feb 11, 2003, 4:49 PM

Post #2 of 2 (363 views)
Permalink
Re: cmd_data analogous [In reply to]

Yuriy Syrota wrote:
> Hello.
>
> The command_rec structure in Apache has a useful field named cmd_data.
> Is there an analogous field in the @APACHE_MODULE_COMMANDS from
> mod_perl2?

Yup, it's called 'data'

src/modules/perl/modperl_module.c:705
/* no default if undefined */
if (!(errmsg = modperl_module_cmd_fetch(aTHX_ obj, "data", &val))) {
info->cmd_data = apr_pstrdup(p, SvPV(val, len));
}

Since I was porting the existing docs and this field didn't exist in 1.0, I've
missed it.

A documentation patch and a small test (just extend one of the
t/response/TestDirective/perlloadmodule*) is very appreciated.

__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas [at] stason http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.